Compartilhar via


VsTextBufferClass.IVsTextLines_GetLengthOfLine(Int32, Int32) Method

Definition

Returns the length of a line in the buffer.

public:
 virtual int IVsTextLines_GetLengthOfLine(int iLine, [Runtime::InteropServices::Out] int % piLength) = Microsoft::VisualStudio::TextManager::Interop::IVsTextLines::GetLengthOfLine;
public:
 virtual int IVsTextLines_GetLengthOfLine(int iLine, [Runtime::InteropServices::Out] int % piLength);
 virtual int IVsTextLines_GetLengthOfLine(int iLine, [Runtime::InteropServices::Out] int & piLength);
public virtual int IVsTextLines_GetLengthOfLine (int iLine, out int piLength);
abstract member IVsTextLines_GetLengthOfLine : int * int -> int
override this.IVsTextLines_GetLengthOfLine : int * int -> int
Public Overridable Function IVsTextLines_GetLengthOfLine (iLine As Integer, ByRef piLength As Integer) As Integer

Parameters

iLine
Int32

[in] Number of the line whose length is requested.

piLength
Int32

[out] Pointer to the length of the line.

Returns

If the method succeeds, returns S_OK; otherwise, returns an error code.

Applies to