IVsTextLines.GetLengthOfLine, méthode

Retourne la longueur d'une entrée ligne la mémoire tampon.

Espace de noms :  Microsoft.VisualStudio.TextManager.Interop
Assembly :  Microsoft.VisualStudio.TextManager.Interop (dans Microsoft.VisualStudio.TextManager.Interop.dll)

Syntaxe

'Déclaration
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

Paramètres

  • iLine
    Type : Int32

    [in] numéro de la ligne dont la longueur est demandée.

  • piLength
    Type : Int32%

    [out] pointeur à la longueur de la ligne.

Valeur de retour

Type : Int32
Si la méthode réussit, elle retourne S_OK.En cas d'échec, un code d'erreur est retourné.

Notes

Signature de COM

De textmgr.idl :

HRESULT IVsTextLines::GetLengthOfLine(
   [in] long iLine,
   [out] long *piLength
);

Cette méthode est utilisée fortement par des vues et est assez efficace dans toutes les implémentations.

Sécurité .NET Framework

Voir aussi

Référence

IVsTextLines Interface

Microsoft.VisualStudio.TextManager.Interop, espace de noms