Partager via


VsTextImageClass.GetLineLength(Int32, Int32) Method

Definition

Returns the length of a line.

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

Parameters

iLine
Int32

[in] Integer containing the line number.

piLength
Int32

[out] Pointer to an integer containing the character count of the line.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Implements

Applies to