ZennoLab.CommandCenter Assembly > 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.
public HtmlElementCollection GetChildren( bool recursive )
Type: System.Boolean
true to returns all children of the element; otherwise, false, returns the children of the first level.
Type: Zennolab.CommandCenter.HtmlCollection
A collection that contains all children of the html element.
// 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);
Target Platforms: Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows Seven