Partilhar via


Método IVsIntellisenseHost.GetContextCaretPos

Define a posição do cursor 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 GetContextCaretPos ( _
    <OutAttribute> ByRef piLine As Integer, _
    <OutAttribute> ByRef piIndex As Integer _
) As Integer
int GetContextCaretPos(
    out int piLine,
    out int piIndex
)
int GetContextCaretPos(
    [OutAttribute] int% piLine, 
    [OutAttribute] int% piIndex
)
abstract GetContextCaretPos : 
        piLine:int byref * 
        piIndex:int byref -> int
function GetContextCaretPos(
    piLine : int, 
    piIndex : int
) : int

Parâmetros

  • piLine
    Tipo: Int32%

    [in] Comprimento do buffer de contexto.

  • piIndex
    Tipo: Int32%

    [in] Indica o índice de posição do cursor.

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::GetContextCaretPos([out] long *piLine, [out] long *piIndex);

Segurança do .NET Framework

Consulte também

Referência

IVsIntellisenseHost Interface

Namespace Microsoft.VisualStudio.TextManager.Interop