Source.GetLineCount 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 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.