Hide

SftTree/OCX 7.5 - ActiveX Tree Control

Display
Print

FirstSibling Property, SftTreeItem Object

Returns the item's first sibling.

Syntax

Get

VB.NETItemIndex = object.FirstSibling As Integer
VBItemIndex = object.FirstSibling As Long
C#.NETint ItemIndex = object.FirstSibling;
VC++long ItemIndex = object->FirstSibling;
long ItemIndex = object->GetFirstSibling();
CHRESULT object->get_FirstSibling(long* ItemIndex);

object

A SftTreeItem object.

ItemIndex

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

Comments

The FirstSibling property returns the item's first sibling.

The first sibling of the item is found by scanning towards the beginning of the tree control and locating an item on the same level (Item.Level property) as the item 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 SftTreeItem Object | Object Hierarchy


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


Spring Break!

Our offices will be closed this week (March 18 through March 22).

We'll be back March 24 to address any pending sales and support issues.