IMenuHandler Interface

Definition

Important

This API is not CLS-compliant.

为对象资源管理器提供上下文菜单处理。Provides context menu handling for the object explorer.

public interface class IMenuHandler
[System.CLSCompliant(false)]
public interface IMenuHandler
type IMenuHandler = interface
Public Interface IMenuHandler
Derived
Attributes

Properties

ContextMenuID

获取上下文菜单的命令 ID。Gets the command ID of the context menu.

Parent

获取或设置层次结构中的父节点。Gets or sets the parent node in the hierarchy.

Methods

DoDefaultAction()

调用默认菜单项。Invokes the default menu item.

FillMenuCommands(IMenuCommandService)

使用菜单项填充 MenuCommandService。Populates the MenuCommandService with the menu items.

InvokeProperties()

调用属性菜单项。Invokes the properties menu item.

UpdateMenuCommandsStatus(MenuCommand)

更新命令的状态。Updates the status of the command.

Events

OnRefresh

在刷新事件处理程序时发生。Occurs when the event handler is refreshed.

Applies to