VsTextBufferClass.GetLengthOfLine(Int32, Int32) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Retourne la longueur d'une ligne de la mémoire tampon.
public:
virtual int GetLengthOfLine(int iLine, [Runtime::InteropServices::Out] int % piLength) = Microsoft::VisualStudio::TextManager::Interop::IVsTextBuffer::GetLengthOfLine;
virtual int GetLengthOfLine(int iLine, [Runtime::InteropServices::Out] int & piLength);
public virtual int GetLengthOfLine (int iLine, out int piLength);
abstract member GetLengthOfLine : int * int -> int
override this.GetLengthOfLine : int * int -> int
Public Overridable Function GetLengthOfLine (iLine As Integer, ByRef piLength As Integer) As Integer
Paramètres
- iLine
- Int32
[in] Numéro de la ligne dont la longueur est demandée.
- piLength
- Int32
[out] Pointeur vers la longueur de la ligne.
Retours
Si la méthode est réussie, retourne S_OK ; sinon, retourne un code d’erreur.