HeaderPane
Main
Hide
Share Link
Print

PrevSibling Property, SftTreeItem Object

Returns the item's previous sibling.

Syntax

Get

C#int ItemIndex = object.PrevSibling;
VB.NETItemIndex = object.PrevSibling As Integer
C++long ItemIndex = object->PrevSibling;
long ItemIndex = object->GetPrevSibling();
CHRESULT object->get_PrevSibling(long* ItemIndex);
VBItemIndex = object.PrevSibling As Long

object

A SftTreeItem object.

ItemIndex

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

Comments

The PrevSibling property returns the item's previous sibling.

The previous 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.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 SftTreeItem Object | Object Hierarchy


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