ZennoLab Assemblies Documentation
ParentDocument Property (HtmlElement)
Example 
ZennoLab.CommandCenter Namespace > HtmlElement Class : ParentDocument Property
Gets the parent document.
Syntax
public Document ParentDocument {get;}

Property Value

Type: Zennolab.CommandCenter.Document

The parent document.

Example
The following code example uses the ParentDocument property.
// find element
HtmlElement he = tab.GetDocumentByAddress("0").FindElementByAttribute("input:checkbox", "fulltag", "input:checkbox", "text", 0);
 
// get parent document
Document parentDocument = he.ParentDocument;
// find element
$he = $tab->GetDocumentByAddress("0")->FindElementByAttribute("input:checkbox", "fulltag", "input:checkbox", "text", 0);
 
// get parent document
$parentDocument = $he->ParentDocument;
Requirements

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

See Also

Reference

HtmlElement Class
HtmlElement Members
Document Class
ParentBody Property
ParentElement Property
ParentForm Property
ParentTab Property