Commands2 Methods

Include Protected Members
Include Inherited Members

The Commands2 type exposes the following members.

Methods

  Name Description
Public method Add Infrastructure. Microsoft internal use only.
Public method AddCommandBar Creates a command bar that is saved and available the next time the environment is started.
Public method AddNamedCommand Creates a named command that is saved by the environment and made available the next time the environment starts, even if the Add-in is not loaded on environment startup.
Public method AddNamedCommand2 Creates a named command that is saved by the environment and made available the next time the environment starts, even if the Add-in is not loaded on environment startup.
Public method CommandInfo Returns the command GUID and ID associated with the given CommandBar control.
Public method GetEnumerator Gets an enumerator for items in the Commands collection.
Public method Item Returns an indexed member of a collection.
Public method Raise Executes the specified command.
Public method RemoveCommandBar Removes a command bar that was created with the AddCommandBar method.
Public method UpdateCommandUI Forces a refresh of the command UI state.

Top

See Also

Reference

Commands2 Interface

EnvDTE80 Namespace