Partilhar via


Método IVsExpansionIntellisenseHost.SetSelection

Define o inicial e final a posição de uma seleção de intervalo de texto 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 SetSelection ( _
    iStart As Integer, _
    iEnd As Integer _
) As Integer
int SetSelection(
    int iStart,
    int iEnd
)
int SetSelection(
    [InAttribute] int iStart, 
    [InAttribute] int iEnd
)
abstract SetSelection : 
        iStart:int * 
        iEnd:int -> int
function SetSelection(
    iStart : int, 
    iEnd : int
) : int

Parâmetros

  • iStart
    Tipo: Int32

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

  • iEnd
    Tipo: Int32

    [in] 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::SetSelection([in] long iStart, [in] long iEnd);

Segurança do .NET Framework

Consulte também

Referência

IVsExpansionIntellisenseHost Interface

Namespace Microsoft.VisualStudio.TextManager.Interop