ZennoLab.CommandCenter Assembly > ZennoLab.CommandCenter Namespace > HtmlElement Class : InsertElementBefore Method |
Type: Zennolab.CommandCenter.HtmlElement
The html element to insert. The value can be null.
public void InsertElementBefore( HtmlElement insertingElement )
Type: Zennolab.CommandCenter.HtmlElement
The html element to insert. The value can be null.
// find first element HtmlElement he = instance.GetTabByAddress("page").GetDocumentByAddress("0").FindElementByAttribute("input:checkbox", "fulltag", "input:checkbox", "text", 0); // find second element HtmlElement hePrev = instance.GetTabByAddress("page").GetDocumentByAddress("0").FindElementByName("rad"); // insert element "hePrev" before "he" he.InsertElementBefore(hePrev);
// find first element $he = $instance->GetTabByAddress("page")->GetDocumentByAddress("0")->FindElementByAttribute("input:checkbox", "fulltag", "input:checkbox", "text", 0); // find second element $hePrev = $instance->GetTabByAddress("page")->GetDocumentByAddress("0")->FindElementByName("rad"); // insert element "hePrev" before "he" $he->InsertElementBefore($hePrev);
Target Platforms: Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows Seven