Hide

SftTree/OCX 7.5 - ActiveX Tree Control

Display
Print

PrevSibling Property, SftTreeItem Object

Returns the item's previous sibling.

Syntax

Get

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

object

A SftTreeItem object.

ItemIndex

Returns the item's next 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 08/13/2020 - (email)
© 2024 Softel vdm, Inc.