Source.GetLineLength(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.