Partilhar via


Método IVsTextViewIntellisenseHost.SetContextCaretPos

Configuração de cursor/seleção relativo para o buffer de contexto. Qualquer edição deve ser feito por meio de buffer.

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

Sintaxe

'Declaração
Function SetContextCaretPos ( _
    iLine As Integer, _
    iIndex As Integer _
) As Integer
int SetContextCaretPos(
    int iLine,
    int iIndex
)
int SetContextCaretPos(
    [InAttribute] int iLine, 
    [InAttribute] int iIndex
)
abstract SetContextCaretPos : 
        iLine:int * 
        iIndex:int -> int
function SetContextCaretPos(
    iLine : int, 
    iIndex : int
) : int

Parâmetros

  • iLine
    Tipo: Int32

     

  • iIndex
    Tipo: Int32

     

Valor de retorno

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

Comentários

De singlefileeditor.idl:

HRESULT IVsTextViewIntellisenseHost::SetContextCaretPos([in] long iLine, [in] long iIndex);

Segurança do .NET Framework

Consulte também

Referência

IVsTextViewIntellisenseHost Interface

Namespace Microsoft.VisualStudio.TextManager.Interop