IDimElements.PrevSibling

Fore Syntax

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

Fore.NET Syntax

PrevSibling[Element: uinteger; Through: boolean]: uinteger;

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.

Fore and Fore.NET Examples

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

See also:

IDimElements