IVsTextLines.GetLineCount, méthode

Retourne le nombre d'entrées 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 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

Paramètres

  • piLineCount
    Type : Int32%

    [out] pointeur vers le nombre d'entrées ligne la mémoire tampon.

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

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