ZennoLab Assemblies Documentation
PreviousSibling Property
See Also  Example Send Feedback
ZennoLab.CommandCenter Assembly > ZennoLab.CommandCenter Namespace > HtmlElement Class : PreviousSibling Property

Glossary Item Box

Gets the previous element. (если предыдущий элемент на уровень выше, то вернет null)

Syntax

C# 
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.
C#Copy Code
HtmlElement he = tab.MainDocument.FindElementByAttribute("input:checkbox", "fulltag", "input:checkbox", "text", 0);
            
HtmlElement prevElement = he.PreviousSibling;
PHPCopy Code
$he = $tab->MainDocument->FindElementByAttribute("input:checkbox", "fulltag", "input:checkbox", "text", 0);
            
$prevElement = $he->PreviousSibling;

Requirements

Target Platforms: Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2012 All Rights Reserved.