ZennoLab Assemblies Documentation
PreviousSibling Property
Example 
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: Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows Seven

See Also

Reference

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

Send Feedback