다음을 통해 공유


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 네임스페이스