Partilhar via


Source.GetLineCount Method

Definition

Gets the number of lines in the source file.

public:
 int GetLineCount();
public:
 int GetLineCount();
int GetLineCount();
public int GetLineCount ();
member this.GetLineCount : unit -> int
Public Function GetLineCount () As Integer

Returns

A number representing the number of lines in the source file. This value can be 0.

Remarks

This method forwards the call to the GetLineCount 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