Returns the index of an item's top-most parent item.
Deprecated - Provided for compatibility with earlier versions only - Use Item.TopParent instead
Get
| VB.NET | ParentIndex = object.get_TopParent(ByVal ItemIndex As Integer) As Integer |
| VB | ParentIndex = object.TopParent(ByVal ItemIndex As Long) As Long |
| C#.NET | int ParentIndex = object.get_TopParent(int ItemIndex); |
| VC++ | long ParentIndex = object->TopParent[long ItemIndex]; long ParentIndex = object->GetTopParent(long ItemIndex); |
| C | HRESULT object->get_TopParent(long ItemIndex, long* ParentIndex); |
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.
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