Hide

SftTree/OCX 7.5 - ActiveX Tree Control

Display
Print

FirstSibling Property, SftTree Object

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

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

Syntax

Get

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

object

A SftTree object.

ItemIndex

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

SiblingIndex

Returns the index of an item's first sibling item. If the item doesn't have a sibling item, -1 is returned.

Comments

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

The FirstSibling property returns the index of an item's first sibling item.

The first 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.LastSibling property can be used to retrieve an item's last sibling. The Item.NextSibling and Item.PrevSibling properties can be used to retrieve an item's next or previous sibling.

See Also SftTree Object | Object Hierarchy


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