Compartir a través de


IVsTextLines.GetLengthOfLine (Método)

devuelve la longitud de una 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 GetLengthOfLine ( _
    iLine As Integer, _
    <OutAttribute> ByRef piLength As Integer _
) As Integer
int GetLengthOfLine(
    int iLine,
    out int piLength
)
int GetLengthOfLine(
    [InAttribute] int iLine, 
    [OutAttribute] int% piLength
)
abstract GetLengthOfLine : 
        iLine:int * 
        piLength:int byref -> int
function GetLengthOfLine(
    iLine : int, 
    piLength : int
) : int

Parámetros

  • iLine
    Tipo: Int32

    [in] Número de línea cuya se solicita longitud.

  • piLength
    Tipo: Int32%

    [out] puntero a la longitud de la línea.

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 IVsTextLines::GetLengthOfLine(
   [in] long iLine,
   [out] long *piLength
);

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

Seguridad de .NET Framework

Vea también

Referencia

IVsTextLines Interfaz

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