Help > Web Development > Object Reference > Object Reference > ISYSDocument > Line Method
<a name="kanchor331"></a>ISYSDocument:Line Method
Returns the text of specified line from the document.

Syntax
[VBScript]
function ISYSDocument.Line(_
  long line, _ 
  long format_ 
) as string
[C#]
string IISYSDocument.Line(
  long line, 
  long format
);
[ColdFusion/Java]
java.lang.String IISYSDocument.Line(
  long line, 
  long format
) throws ComException;
Parameters
lineThe line for which you wish to retrieve the text
formatThe style with which you want the text to be returned.
isysStyleRaw0Raw format including embedded codes
isysStylePlain1Plain text with codes removed
isysStyleHTML2HTML text with codes converted

Examples
[VBScript]
<% ' Execute the search object and get the results dim Results : set Results = ISYSSearch.Execute ' Get the first document dim Document : Document = Results(1) ' Display 3 lines after the first hit firsthit = Document.GetLineWithHitAfter(0) for i = firsthit to firsthit + 1 if i > Document.LineCount then exit for Response.Write Document.Line(i, isysStylePlain) next %>
See Also