SftTree/OCX 7.0

SftTree.FirstSibling Property

Softel vdm, Inc.

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

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

Syntax       

Get

VB.NET

SiblingIndex = object.get_FirstSibling(ByVal ItemIndex As Integer)  As Integer

VB

SiblingIndex = object.FirstSibling(ByVal ItemIndex As Long)  As Long

C#.NET

int SiblingIndex = object.get_FirstSibling(int ItemIndex);

VC++

long SiblingIndex = object->FirstSibling[long ItemIndex];
long SiblingIndex = object->GetFirstSibling(long ItemIndex);

C

HRESULT object->get_FirstSibling(long ItemIndex, long* SiblingIndex);

Delphi

SiblingIndex := object.FirstSibling[ItemIndex : Integer]   : Integer;

object

A SftTree object.

ItemIndex

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

SiblingIndex

Returns the index of an item's first 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.FirstSibling instead

The FirstSibling property returns the index of an item's first sibling item.

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

The Item.LastSibling property can be used to retrieve an item's last 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


Feedback / comments / error reports for this topic
© 2015 - Softel vdm, Inc. - www.softelvdm.com