ZennoLab Assemblies Documentation
ParentDocument Property
See Also  Example Send Feedback
ZennoLab.CommandCenter Assembly > ZennoLab.CommandCenter Namespace > HtmlElement Class : ParentDocument Property

Glossary Item Box

Gets the parent document.

Syntax

C# 
public Document ParentDocument {get;}

Property Value

Type: Zennolab.CommandCenter.Document

The parent document.

Example

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

Requirements

Target Platforms: Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2014 All Rights Reserved.