OleMenuCommandService Members
Include Protected Members
Include Inherited Members
This class derives from the MenuCommandService class and implements IOleCommandTarget. MenuCommandService is the managed class used to add handlers for menu commands and to define verbs.
The OleMenuCommandService type exposes the following members.
Constructors
Name
Description
Overloaded.
Top
Methods
Name
Description
Adds a command handler to the menu command service. (Inherited from MenuCommandService.)
Adds a verb to the verb table of the MenuCommandService. (Inherited from MenuCommandService.)
Overloaded. Releases all resources used by the MenuCommandService.
Ensures that the verb list has been created. (Inherited from MenuCommandService.)
Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Overloaded. Searches for the MenuCommand associated with the given command ID.
Gets the command list for a given GUID. (Inherited from MenuCommandService.)
Serves as a hash function for a particular type. (Inherited from Object.)
Gets a reference to the requested service. (Inherited from MenuCommandService.)
Gets the type of the current instance. (Inherited from Object.)
Overloaded.
Creates a shallow copy of the current Object. (Inherited from Object.)
Called by a menu command when its status has changed. (Overrides MenuCommandService.OnCommandsChanged(MenuCommandsChangedEventArgs).)
Removes the given menu command from the document. (Inherited from MenuCommandService.)
Removes the given verb from the document. (Inherited from MenuCommandService.)
Shows the shortcut menu with the given command ID at the given location. (Overrides MenuCommandService.ShowContextMenu(CommandID, Int32, Int32).)
Returns a string that represents the current object. (Inherited from Object.)
Top
Properties
Name
Description
Obsolete.
Gets a collection of the designer verbs that are currently available. (Inherited from MenuCommandService.)
Top
Events
Name
Description
Occurs when the status of a menu command has changed. (Inherited from MenuCommandService.)
Top
Explicit Interface Implementations
Name
Description
Infrastructure. Executes the selected command.
Infrastructure. Sets command status.
Top