次の方法で共有


ModelExplorerTreeContainer.AddCommandHandlers(IMenuCommandService) Method

Definition

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.

Applies to