| < Free Open Study > |
|
Command objects can be executed both from a macro and from an add-in. They normally represent menu commands that you can find on the various menus of the IDE.
The Command object relates to a command in the IDE. You can reference the Command object by using DTE.Commands.Item(index). You can invoke any command in the IDE by using DTE.ExecuteCommand in the Macros IDE. You can do the same thing in an add-in by using appObj.ExecuteCommand.
The Commands collection contains all of the Command objects in the IDE.
| < Free Open Study > |
|