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

Type: Zennolab.CommandCenter.HtmlElement

The html element to insert. The value can be null.

Inserts the specified element after this element.
Syntax
public void InsertElementAfter( 
   HtmlElement insertingElement
)

Parameters

insertingElement

Type: Zennolab.CommandCenter.HtmlElement

The html element to insert. The value can be null.

Example
The following code example demonstrates uses of the InsertElementAfter method.
// find first element
HtmlElement he = instance.GetTabByAddress("page").GetDocumentByAddress("0").FindElementByAttribute("input:checkbox", "fulltag", "input:checkbox", "text", 0);
 
// find second element
HtmlElement heNext = instance.GetTabByAddress("page").GetDocumentByAddress("0").FindElementByName("rad");
 
// insert element "heNext" after "he"
he.InsertElementAfter(heNext);
// find first element
$he = $instance->GetTabByAddress("page")->GetDocumentByAddress("0")->FindElementByAttribute("input:checkbox", "fulltag", "input:checkbox", "text", 0);
 
// find second element
$heNext = $instance->GetTabByAddress("page")->GetDocumentByAddress("0")->FindElementByName("rad");
 
// insert element "heNext" after "he"
$he->InsertElementAfter($heNext);
Requirements

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

See Also

Reference

HtmlElement Class
HtmlElement Members
InsertElementBefore Method