SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftMask/OCX 7.0 - Masked Edit Control
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftPrintPreview/DLL 2.0 - Print Preview Control (discontinued)
SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftDirectory 3.5 - File/Folder Control (discontinued)
SftMask/OCX 7.0 - Masked Edit Control
SftOptions 1.0 - Registry/INI Control (discontinued)
SftPrintPreview/OCX 1.0 - Print Preview Control (discontinued)
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftTabs/NET 6.0 - Tab Control (discontinued)
SftTree/NET 2.0 - Tree Control
Returns the index of an item's parent item.
Deprecated - Provided for compatibility with earlier versions only - Use Item.Parent instead
Get
VB.NET | ParentIndex = object.get_Parent(ByVal ItemIndex As Integer) As Integer |
VB | ParentIndex = object.Parent(ByVal ItemIndex As Long) As Long |
C#.NET | int ParentIndex = object.get_Parent(int ItemIndex); |
VC++ | long ParentIndex = object->Parent[long ItemIndex]; long ParentIndex = object->GetParent(long ItemIndex); |
C | HRESULT object->get_Parent(long ItemIndex, long* ParentIndex); |
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.
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