nType | [optional] (Long) Specifies whether the method returns the index of the specific item or its subitem.
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