Hide

SftTree/OCX 7.5 - ActiveX Tree Control

Display
Print

PrevSibling Property, SftTree Object

Returns the index of an item's previous sibling item.

Deprecated - Provided for compatibility with earlier versions only - Use Item.PrevSibling instead

Syntax

Get

VB.NETSiblingIndex = object.get_PrevSibling(ByVal ItemIndex As Integer) As Integer
VBSiblingIndex = object.PrevSibling(ByVal ItemIndex As Long) As Long
C#.NETint SiblingIndex = object.get_PrevSibling(int ItemIndex);
VC++long SiblingIndex = object->PrevSibling[long ItemIndex];
long SiblingIndex = object->GetPrevSibling(long ItemIndex);
CHRESULT object->get_PrevSibling(long ItemIndex, long* SiblingIndex);

object

A SftTree object.

ItemIndex

The zero-based index of the item whose previous sibling item is to be returned.

SiblingIndex

Returns the index of the item's previous sibling item. -1 is returned if the item doesn't have a previous sibling.

Comments

Deprecated - Provided for compatibility with earlier versions only - Use Item.PrevSibling instead

The PrevSibling property returns the index of an item's previous sibling item.

The previous sibling of item ItemIndex is found by scanning towards the beginning of the tree control and locating an item on the same level (Item.Level property) as item ItemIndex without encountering a parent item.

The Item.NextSibling property can be used to retrieve an item's next sibling. The Item.FirstSibling and Item.LastSibling properties can be used to retrieve an item's first or last sibling.

See Also SftTree Object | Object Hierarchy


Last Updated 08/13/2020 - (email)
© 2022 Softel vdm, Inc.