Método IVsTextStream.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
Este método é usado amplamente pelas exibições e é razoavelmente eficiente em todas as implementações.
COM assinatura
De textmgr.idl:
HRESULT IVsTextStream::GetLengthOfLine(
[in] long iLine,
[out] long *piLength
);
Segurança do .NET Framework
- Confiança total para o chamador imediato. O membro não pode ser usado por código parcialmente confiável. Para obter mais informações, consulte Usando bibliotecas de código parcialmente confiável.