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 命名空间