ZennoLab Assemblies Documentation
PreviousSibling Property
Example 
ZennoLab.CommandCenter Namespace > HtmlElement Class : PreviousSibling Property
Gets the previous element.
Syntax
public HtmlElement PreviousSibling {get;}

Property Value

Type: Zennolab.CommandCenter.HtmlElement

The previous element.

Remarks
If the previous element to a higher level, then return null.
Example
The following code example uses the PreviousSibling property.
// find element
HtmlElement he = tab.GetDocumentByAddress("0").FindElementByAttribute("input:checkbox", "fulltag", "input:checkbox", "text", 0);
 
// get previous element
HtmlElement prevElement = he.PreviousSibling;
// find element
$he = $tab->GetDocumentByAddress("0")->FindElementByAttribute("input:checkbox", "fulltag", "input:checkbox", "text", 0);
 
// get previous element
$prevElement = $he->PreviousSibling;
Requirements

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

See Also

Reference

HtmlElement Class
HtmlElement Members
FirstChild Property
LastChild Property
NextSibling Property
GetChildren Method