ZennoLab Assemblies Documentation
GetPageText Method
Example 
ZennoLab.CommandCenter Namespace > Document Class : GetPageText Method

Type: System.Boolean

true to return text of the page and text of the subpage recorded through delimiters; otherwise, false.

Gets the text of the document that the user sees
Syntax
public string GetPageText( 
   bool recursive
)

Parameters

recursive

Type: System.Boolean

true to return text of the page and text of the subpage recorded through delimiters; otherwise, false.

Return Value

Type: System.String

The text of the document.

Remarks
For getting page text correctly needs full download of tab (web page). Use the IsBusy property and WaitDownloading method of Tab class for waiting for page's downloading.
Example
The following code example demonstrates uses of the GetPageText method. Shows the method call in two versions.
// get document
Document doc = tab.MainDocument;
 
// get recursive page text
string pagesText = doc.GetPageText(true);
 
// get page text from first level
string pageText = doc.GetPageText(false);
// get document
$doc = $tab->MainDocument;
 
// get recursive page text
$pagesText = $doc->GetPageText(true);
 
// get page text from first level
$pageText = $doc->GetPageText(false);
Requirements

Target Platforms: Desktop: Windows XP SP3 and older. Server: Windows Server 2003 and older.

See Also

Reference

Document Class
Document Members
Tab Class