Compartir a través de


IVsTextBuffer.GetLineCount (Método)

Devuelve el número de línea en el búfer.

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

Sintaxis

'Declaración
Function GetLineCount ( _
    <OutAttribute> ByRef piLineCount As Integer _
) As Integer
int GetLineCount(
    out int piLineCount
)
int GetLineCount(
    [OutAttribute] int% piLineCount
)
abstract GetLineCount : 
        piLineCount:int byref -> int
function GetLineCount(
    piLineCount : int
) : int

Parámetros

  • piLineCount
    Tipo: Int32%

    [out] Puntero al número de línea en el búfer.

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::GetLineCount(
   [out] long *piLineCount
);

Este método se utiliza importante para vistas y es bastante eficaz por todas las implementaciones.

Seguridad de .NET Framework

Vea también

Referencia

IVsTextBuffer Interfaz

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