HeaderPane
Main
Hide
Share Link
Print

LastSibling Property, SftTreeItem Object

Returns the item's last sibling.

Syntax

Get

C#int ItemIndex = object.LastSibling;
VB.NETItemIndex = object.LastSibling As Integer
C++long ItemIndex = object->LastSibling;
long ItemIndex = object->GetLastSibling();
CHRESULT object->get_LastSibling(long* ItemIndex);
VBItemIndex = object.LastSibling As Long

object

A SftTreeItem object.

ItemIndex

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

Comments

The LastSibling property returns the item's last sibling.

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

The Item.FirstSibling property can be used to retrieve an item's first 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 11/03/2026 - (email)
© 2026 Softel vdm, Inc.