Compartir a través de


IVsTextBuffer.GetLastLineIndex (Método)

Devuelve la última línea en el búfer de texto.

Espacio de nombres:  Microsoft.VisualStudio.TextManager.Interop
Ensamblado:  Microsoft.VisualStudio.TextManager.Interop (en Microsoft.VisualStudio.TextManager.Interop.dll)

Sintaxis

'Declaración
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] Puntero a la última línea en el búfer de texto.

  • piIndex
    Tipo: Int32%

    [out] Puntero al número de índice de piLine

Valor devuelto

Tipo: Int32
si el método tiene éxito, devuelve S_OK.Si se produce un error, devuelve un código de error.

Comentarios

Prototipo COM

de textmgr.idl:

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

Este método puede requerir a considerables recursos, dependiendo de la implementación subyacente del búfer. Es decir, puede ser muy difícil calcular el tamaño del búfer si es una implementación virtual-línea-orientada como en Visual Basic.

Seguridad de .NET Framework

Vea también

Referencia

IVsTextBuffer Interfaz

Microsoft.VisualStudio.TextManager.Interop (Espacio de nombres)