Zennolab.CommandCenter
GetChildren Method
See Also  Example Send Feedback
Zennolab.CommandCenter Namespace > HtmlElement Class : GetChildren Method
recursive

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

C# 
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.
C#Copy Code
HtmlElement he = instance.GetTabByAddress("page").GetDocumentByAddress("0").FindElementByAttribute("input:checkbox", "fulltag", "input:checkbox", "text", 0);
            
HtmlElementCollection heCol = he.GetChildren(true);
PHPCopy Code
$he = $instance->GetTabByAddress("page")->GetDocumentByAddress("0")->FindElementByAttribute("input:checkbox", "fulltag", "input:checkbox", "text", 0);
            
$heCol = $he->GetChildren(true);

Requirements

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

See Also

© 2011 All Rights Reserved.