Hide

SftTree/OCX 7.5 - ActiveX Tree Control

Display
Print

LastSibling Property, SftTree Object

Returns the index of an item's last sibling item.

Deprecated - Provided for compatibility with earlier versions only - Use Item.LastSibling instead

Syntax

Get

VB.NETSiblingIndex = object.get_LastSibling(ByVal ItemIndex As Integer) As Integer
VBSiblingIndex = object.LastSibling(ByVal ItemIndex As Long) As Long
C#.NETint SiblingIndex = object.get_LastSibling(int ItemIndex);
VC++long SiblingIndex = object->LastSibling[long ItemIndex];
long SiblingIndex = object->GetLastSibling(long ItemIndex);
CHRESULT object->get_LastSibling(long ItemIndex, long* SiblingIndex);

object

A SftTree object.

ItemIndex

The zero-based index of the item whose last sibling item is to be returned.

SiblingIndex

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

Comments

Deprecated - Provided for compatibility with earlier versions only - Use Item.LastSibling instead

The LastSibling property returns the index of an item's last sibling item.

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


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