Returns the item's top-most parent item.
|VB.NET||ItemIndex = object.TopParent As Integer|
|VB||ItemIndex = object.TopParent As Long|
|C#.NET||int ItemIndex = object.TopParent;|
|VC++||long ItemIndex = object->TopParent; |
long ItemIndex = object->GetTopParent();
|C||HRESULT object->get_TopParent(long* ItemIndex);|
A SftTreeItem object.
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.
The TopParent property returns the item's top-most parent item.