PrevSibling(Element: Integer; [Through: Boolean]): Integer;
PrevSibling[Element: uinteger; Through: boolean]: uinteger;
Element. Element index.
Through. Optional parameter which determines whether transition to the elements of the same level of another parent will be executed. By default False.
The PrevSibling property returns index of the previous element with respect to selected one taking into account parent and level. The property returns -1 if there is no previous element.
To get index of the next element relative the selected one, use the IDimElements.NextSibling property.
The property use is given in the example for IDimElements.NextSibling.
See also: