| nType | [optional] (Long) Specifies whether the method returns the index of the specified item or its subitem.
0 (default) - Returns the index of the specific tree item.
The vPar parameter must be null. For root - root tree item returns the -1 value. 1 - Returns the index of the subitem of specific tree item.
In the vPar parameter, the identifier of the requested subitem is entered. If the subitem is not found then it returns the -1 value. |
|---|---|
| vPar | [optional] (Variant) The value entered here depends on the setting of the value of the nType parameter. |
var nIndex1 = oTreeItem.GetItemIndex();
// The index of the oTreeItem
var nIndex2 = oTreeItem.GetItemIndex(1, "SubItId");
// The index of the subitem with SubItId identifier