ModelExplorerTreeContainer.AddCommandHandlers(IMenuCommandService) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds command handlers for commands that appear in the context menu. Base implementation will only add command handlers if a handler is not already registered, to allow derived classes to override handling of a particular command. For this reason, derived classes should add commands first before calling the base class.
public:
virtual void AddCommandHandlers(System::ComponentModel::Design::IMenuCommandService ^ menuCommandService);
public virtual void AddCommandHandlers (System.ComponentModel.Design.IMenuCommandService menuCommandService);
abstract member AddCommandHandlers : System.ComponentModel.Design.IMenuCommandService -> unit
override this.AddCommandHandlers : System.ComponentModel.Design.IMenuCommandService -> unit
Public Overridable Sub AddCommandHandlers (menuCommandService As IMenuCommandService)
Parameters
- menuCommandService
- IMenuCommandService
IMenuCommandService to which commands should be added.