Partilhar via


Método IVsIntellisenseHost.GetContextSelection

Obtém a seleção em relação ao buffer de contexto.

Namespace:  Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop.8.0 (em Microsoft.VisualStudio.TextManager.Interop.8.0.dll)

Sintaxe

'Declaração
Function GetContextSelection ( _
    <OutAttribute> pSelectionSpan As TextSpan() _
) As Integer
int GetContextSelection(
    TextSpan[] pSelectionSpan
)
int GetContextSelection(
    [OutAttribute] array<TextSpan>^ pSelectionSpan
)
abstract GetContextSelection : 
        pSelectionSpan:TextSpan[] byref -> int
function GetContextSelection(
    pSelectionSpan : TextSpan[]
) : int

Parâmetros

Valor de retorno

Tipo: Int32
Se o método for bem-sucedido, ele retorna S_OK.Se ele falhar, ele retorna um código de erro.

Comentários

C++

De singlefileeditor.idl:

HRESULT IVsIntellisenseHost::GetContextSelection([out] TextSpan *pSelectionSpan);

Segurança do .NET Framework

Consulte também

Referência

IVsIntellisenseHost Interface

Namespace Microsoft.VisualStudio.TextManager.Interop