Hide

SftTree/OCX 7.5 - ActiveX Tree Control

Display
Print

Parent Property, SftTree Object

Returns the index of an item's parent item.

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

Syntax

Get

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

object

A SftTree object.

ItemIndex

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

ParentIndex

Returns the index of the item's immediate parent item. If the item doesn't have a parent, -1 is returned.

Comments

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

The Parent property returns the index of an item's parent item.

To find an item's top-most parent, use the Item.TopParent property instead.

Visual Basic: The Parent property implemented by the tree control is hidden by Visual Basic's own Parent property. To access the tree control's property use the following construct:

parentIndex = Tree1.Object.Parent(9)

The "Object" keyword is implemented by Visual Basic to access to an object's properties directly. See the Visual Basic documentation for more information.

.NET: Please note the use of Ctlget_Parent, instead of Parent. Please see "Using SftTree/OCX with .NET" for additional information.

See Also SftTree Object | Object Hierarchy


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


Spring Break!

Our offices will be closed this week (March 18 through March 22).

We'll be back March 24 to address any pending sales and support issues.