IDimElements.PrevSibling

Syntax

PrevSibling(Element: Integer; [Through: Boolean]): Integer;

Parameters

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.

Description

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.

Comments

To get index of the next element relative the selected one, use the IDimElements.NextSibling property.

Example

The property use is given in the example for IDimElements.NextSibling.

See also:

IDimElements