HeaderPane
Main
Hide
Share Link
Print

NextSibling Property, SftTreeItem Object

Returns the item's next sibling.

Syntax

Get

C#int ItemIndex = object.NextSibling;
VB.NETItemIndex = object.NextSibling As Integer
C++long ItemIndex = object->NextSibling;
long ItemIndex = object->GetNextSibling();
CHRESULT object->get_NextSibling(long* ItemIndex);
VBItemIndex = object.NextSibling As Long

object

A SftTreeItem object.

ItemIndex

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

Comments

The NextSibling property returns the item's next sibling.

The next 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 parent item.

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

See Also SftTreeItem Object | Object Hierarchy


Last Updated 11/03/2026 - (email)
© 2026 Softel vdm, Inc.