|
|
|
SftTree.TopParent Property |
Returns the index of an item's top-most parent item.
Deprecated - Provided for compatibility with earlier versions only - Use Item.TopParent instead
Syntax
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];
|
||
C |
HRESULT object->get_TopParent(long ItemIndex, long* ParentIndex); |
||
Delphi |
ParentIndex := object.TopParent[ItemIndex : Integer] : Integer; |
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