Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

MenuCommandService Methods

The MenuCommandService type exposes the following members.

  Name Description
Public method AddCommand Adds a command handler to the menu command service.
Public method AddVerb Adds a verb to the verb table of the MenuCommandService.
Public method Dispose() Releases all resources used by the MenuCommandService.
Protected method Dispose(Boolean) Releases all resources used by the MenuCommandService.
Protected method EnsureVerbs Ensures that the verb list has been created.
Public method Equals(Object) Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method FindCommand(CommandID) Searches for the MenuCommand associated with the given command ID.
Protected method FindCommand(Guid, Int32) Searches for the MenuCommand associated with the given command.
Protected method GetCommandList Gets the command list for a given GUID.
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Protected method GetService Gets a reference to the requested service.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method GlobalInvoke(CommandID) Invokes the given command on the local form or in the global environment.
Public method GlobalInvoke(CommandID, Object) Invokes the given command with the given parameter on the local form or in the global environment.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Protected method OnCommandsChanged Raises the MenuCommandsChanged event.
Public method RemoveCommand Removes the given menu command from the document.
Public method RemoveVerb Removes the given verb from the document.
Public method ShowContextMenu Shows the shortcut menu with the given command ID at the given location.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Top
Show:
© 2015 Microsoft