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

Glossary Item Box

Gets the first child element of the document.

Syntax

C# 
public HtmlElement FirstChild {get;}

Property Value

Type: Zennolab.CommandCenter.HtmlElement

The first child element.

Example

The following code example uses the FirstChild property.
C#Copy Code
// get document
Document doc = tab.MainDocument;
 
// get first child
HtmlElement he = doc.FirstChild;
PHPCopy Code
// get document
$doc = $tab->MainDocument;
 
// get first child
$he = $doc->FirstChild;

Requirements

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

See Also

© 2013 All Rights Reserved.