Метод 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>
Параметры
editor
Тип: Microsoft.WebMatrix.Extensibility.Editor.IEditorРедактор.
position
Тип: System.Nullable<Int32>Позиция.
Возвращаемое значение
Тип: System.Collections.Generic.IEnumerable<Object>
Элементы контекстного меню для указанного редактора и позиции.