Поделиться через


IVsIntellisenseHost.GetSubjectSelection - метод

Получает выделение относительно текста на котором работает IntelliSense.

Пространство имен:  Microsoft.VisualStudio.TextManager.Interop
Сборка:  Microsoft.VisualStudio.TextManager.Interop.8.0 (в Microsoft.VisualStudio.TextManager.Interop.8.0.dll)

Синтаксис

'Декларация
Function GetSubjectSelection ( _
    <OutAttribute> ByRef piAnchorIndex As Integer, _
    <OutAttribute> ByRef piEndIndex As Integer _
) As Integer
int GetSubjectSelection(
    out int piAnchorIndex,
    out int piEndIndex
)
int GetSubjectSelection(
    [OutAttribute] int% piAnchorIndex, 
    [OutAttribute] int% piEndIndex
)
abstract GetSubjectSelection : 
        piAnchorIndex:int byref * 
        piEndIndex:int byref -> int
function GetSubjectSelection(
    piAnchorIndex : int, 
    piEndIndex : int
) : int

Параметры

  • piAnchorIndex
    Тип: Int32%

    [out] запуск индекс выделения текста субъекта.

  • piEndIndex
    Тип: Int32%

    [out] конечный индекс подчиненного выделение текста.

Возвращаемое значение

Тип: Int32
Если метод завершается успешно, возвращается S_OK.Если происходит сбой, возвращается код ошибки.

Заметки

C++

Из singlefileeditor.idl:

HRESULT IVsIntellisenseHost::GetSubjectSelection([out] long *piAnchorIndex, [out] long *piEndIndex);

Безопасность платформы .NET Framework

См. также

Ссылки

IVsIntellisenseHost Интерфейс

Microsoft.VisualStudio.TextManager.Interop - пространство имен