Help > Web Development > Object Reference > Object Reference > ISYSDocument > LineCount Property
<a name="kanchor332"></a>ISYSDocument:LineCount Property
Returns the number of lines within the document. Read-Only.

Syntax
[VBScript]
ReadOnly property ISYSDocument.LineCount as long
[C#]
long IISYSDocument.LineCount {get;}
[ColdFusion/Java]
long ISYSDocument.LineCount() throws ComException;
Examples
[VBScript]
<% Set results = ISYSSearch.Execute Set document = results.Item(1) ' Display 3 lines after the first hit firstHit = document.GetLineWithHitAfter(0) lineCount = document.LineCount for i = firstHit to firstHit + 3 if i < lineCount then Response.Write document.Line(i, Plain) end if next %>