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.
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.
The following code example demonstrates uses of the GetPageText method. Shows the method call in two versions.
| C# | Copy Code |
|---|---|
// 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); | |
| PHP | Copy Code |
|---|---|
// get document $doc = $tab->MainDocument; // get recursive page text $pagesText = $doc->GetPageText(true); // get page text from first level $pageText = $doc->GetPageText(false); | |
Target Platforms: Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family