共用方式為


MenuActionEventArgs.Context 屬性

會取得目前正在使用中的編輯內容。

命名空間:  Microsoft.Windows.Design.Interaction
組件:  Microsoft.Windows.Design.Interaction (在 Microsoft.Windows.Design.Interaction.dll 中)

語法

'宣告
Public ReadOnly Property Context As EditingContext
    Get
public EditingContext Context { get; }
public:
property EditingContext^ Context {
    EditingContext^ get ();
}
member Context : EditingContext
function get Context () : EditingContext

屬性值

型別:Microsoft.Windows.Design.EditingContext
EditingContext ,表示一批使用中的編輯內容。

.NET Framework 安全性

請參閱

參考

MenuActionEventArgs 類別

Microsoft.Windows.Design.Interaction 命名空間

PrimarySelectionContextMenuProvider

MenuAction

MenuGroup

ModelItem

其他資源

逐步解說:建立功能表提供者