Partilhar via


Método IVsExpansionIntellisenseHost.GetSelection

Recupera as posições inicial e final da seleção atual de expansão.

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

Sintaxe

'Declaração
Function GetSelection ( _
    <OutAttribute> ByRef iStart As Integer, _
    <OutAttribute> ByRef iEnd As Integer _
) As Integer
int GetSelection(
    out int iStart,
    out int iEnd
)
int GetSelection(
    [OutAttribute] int% iStart, 
    [OutAttribute] int% iEnd
)
abstract GetSelection : 
        iStart:int byref * 
        iEnd:int byref -> int
function GetSelection(
    iStart : int, 
    iEnd : int
) : int

Parâmetros

  • iStart
    Tipo: Int32%

    [out] A posição inicial do texto expansão span.

  • iEnd
    Tipo: Int32%

    [out] A posição final do texto expansão span.

Valor de retorno

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

Comentários

C++

De singlefileeditor.idl:

HRESULT IVsExpansionIntellisenseHost::GetSelection([out] long *iStart, [out] long *iEnd);

Segurança do .NET Framework

Consulte também

Referência

IVsExpansionIntellisenseHost Interface

Namespace Microsoft.VisualStudio.TextManager.Interop