IMenuHandler 介面

定義

重要

此 API 不符合 CLS 規範。

提供物件總管的右鍵選單處理。

public interface class IMenuHandler
[System.CLSCompliant(false)]
public interface IMenuHandler
[<System.CLSCompliant(false)>]
type IMenuHandler = interface
Public Interface IMenuHandler
衍生
屬性

屬性

名稱 Description
ContextMenuID

會取得右鍵選單的指令 ID。

Parent

取得或設定階層中的父節點。

方法

名稱 Description
DoDefaultAction()

會呼叫預設選單項目。

FillMenuCommands(IMenuCommandService)

將選單項目填入 MenuCommandService。

InvokeProperties()

呼叫屬性選單項目。

UpdateMenuCommandsStatus(MenuCommand)

更新指令狀態。

事件

名稱 Description
OnRefresh

當事件處理器被刷新時會發生。

適用於