Compartir a través de


Source.GetLineLength(Int32) Method

Definition

Gets the length of the specified line.

public:
 int GetLineLength(int line);
public:
 int GetLineLength(int line);
int GetLineLength(int line);
public int GetLineLength (int line);
member this.GetLineLength : int -> int
Public Function GetLineLength (line As Integer) As Integer

Parameters

line
Int32

The line number for which to get the length.

Returns

A number representing the number of characters on the line.

Remarks

This method forwards the call to the GetLengthOfLine method on the IVsTextLines object passed to the Source class constructor. An exception is thrown if the line number is out of range.

Applies to