Compartilhar via


Método IVsTextBuffer.GetLastLineIndex

Retorna a última linha no buffer de texto.

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

Sintaxe

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

Parâmetros

  • piLine
    Tipo: Int32%

    [out] Ponteiro para a última linha no buffer de texto.

  • piIndex
    Tipo: Int32%

    [out] Ponteiro para o número de índicepiLine

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

COM assinatura

De textmgr.idl:

HRESULT IVsTextBuffer::GetLastLineIndex(
   [out] long *piLine,
   [out] long *piIndex
);

Esse método pode exigir recursos consideráveis, dependendo da implementação subjacente do buffer. Ou seja, pode ser muito difícil calcular o tamanho do buffer, se for uma implementação virtual orientado para linha, como em Visual Basic.

Segurança do .NET Framework

Consulte também

Referência

IVsTextBuffer Interface

Namespace Microsoft.VisualStudio.TextManager.Interop