ZennoLab Assemblies Documentation
GetChildren Method
Example 
ZennoLab.CommandCenter Namespace > HtmlElement Class : GetChildren Method

Type: System.Boolean

true to returns all children of the element; otherwise, false, returns the children of the first level.

Returns the all children.
Syntax
public HtmlElementCollection GetChildren( 
   bool recursive
)

Parameters

recursive

Type: System.Boolean

true to returns all children of the element; otherwise, false, returns the children of the first level.

Return Value

Type: Zennolab.CommandCenter.HtmlCollection

A collection that contains all children of the html element.

Example
The following code example demonstrates uses of the GetChildren method.
// find element by attribute
HtmlElement he = instance.GetTabByAddress("page").GetDocumentByAddress("0").FindElementByAttribute("input:checkbox", "fulltag", "input:checkbox", "text", 0);
 
// get all children of current html element
HtmlElementCollection heCol = he.GetChildren(true);
// find element by attribute
$he = $instance->GetTabByAddress("page")->GetDocumentByAddress("0")->FindElementByAttribute("input:checkbox", "fulltag", "input:checkbox", "text", 0);
 
// get all children of current html element
$heCol = $he->GetChildren(true);
Requirements

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

See Also

Reference

HtmlElement Class
HtmlElement Members
HtmlElementCollection Class