Hide

SftTree/OCX 7.5 - ActiveX Tree Control

Display
Print

TopParent Property, SftTree Object

Returns the index of an item's top-most parent item.

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

Syntax

Get

VB.NETParentIndex = object.get_TopParent(ByVal ItemIndex As Integer) As Integer
VBParentIndex = object.TopParent(ByVal ItemIndex As Long) As Long
C#.NETint ParentIndex = object.get_TopParent(int ItemIndex);
VC++long ParentIndex = object->TopParent[long ItemIndex];
long ParentIndex = object->GetTopParent(long ItemIndex);
CHRESULT object->get_TopParent(long ItemIndex, long* ParentIndex);

object

A SftTree object.

ItemIndex

The zero-based index of the item whose top-most parent item index is to be returned.

ParentIndex

Returns the zero-based index of the item's top-most parent item (which itself doesn't have a parent). If the item doesn't have a parent, -1 is returned.

Comments

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

The TopParent property returns the index of an item's top-most parent item.

To find an item's immediate parent, use the Item.Parent property instead.

See Also SftTree Object | Object Hierarchy


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