共用方式為


IEditorContextMenuProvider.GetMenuItems 方法

適用於版本2

取得指定之編輯器和位置的內容功能表項目。

命名空間:  Microsoft.WebMatrix.Extensibility.Editor
組件:  Microsoft.WebMatrix.Extensibility (在 Microsoft.WebMatrix.Extensibility.dll 中)

語法

'宣告
Function GetMenuItems ( _
    editor As IEditor, _
    position As Nullable(Of Integer) _
) As IEnumerable(Of Object)
'用途
Dim instance As IEditorContextMenuProvider 
Dim editor As IEditor 
Dim position As Nullable(Of Integer)
Dim returnValue As IEnumerable(Of Object)

returnValue = instance.GetMenuItems(editor, _
    position)
IEnumerable<Object> GetMenuItems(
    IEditor editor,
    Nullable<int> position
)
IEnumerable<Object^>^ GetMenuItems(
    IEditor^ editor, 
    Nullable<int> position
)
abstract GetMenuItems : 
        editor:IEditor * 
        position:Nullable<int> -> IEnumerable<Object> 
function GetMenuItems(
    editor : IEditor, 
    position : Nullable<int>
) : IEnumerable<Object>

參數

傳回值

型別:System.Collections.Generic.IEnumerable<Object>
指定之編輯器和位置的內容功能表項目。

請參閱

參考

IEditorContextMenuProvider 介面

Microsoft.WebMatrix.Extensibility.Editor 命名空間