Compartilhar via


Método IVsTextBuffer.GetLengthOfLine

Retorna o comprimento de uma linha no buffer.

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

Sintaxe

'Declaração
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 da linha cujo tamanho é solicitado.

  • piLength
    Tipo: Int32%

    [out] Ponteiro para o comprimento da linha.

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

Este método é usado amplamente pelas exibições e é razoavelmente eficiente em todas as implementações.

Segurança do .NET Framework

Consulte também

Referência

IVsTextBuffer Interface

Namespace Microsoft.VisualStudio.TextManager.Interop