Dela via


IEditorContextMenuProvider.GetMenuItems Method

Applies to v2.

Gets the context menu items for the specified editor and position.

Namespace:  Microsoft.WebMatrix.Extensibility.Editor
Assembly:  Microsoft.WebMatrix.Extensibility (in Microsoft.WebMatrix.Extensibility.dll)

Syntax

'Declaration
Function GetMenuItems ( _
    editor As IEditor, _
    position As Nullable(Of Integer) _
) As IEnumerable(Of Object)
'Usage
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>

Parameters

Return Value

Type: System.Collections.Generic.IEnumerable<Object>
The context menu items for the specified editor and position.

See Also

Reference

IEditorContextMenuProvider Interface

Microsoft.WebMatrix.Extensibility.Editor Namespace