nWhat | [optional] (Long) Specifies which items will be removed.
0 (default) - Removes the specified item.
2 - Removes all subitems of the specified item. |
---|
oTreeItem1.RemoveItem();
// Removes the item oTreeItem1
oTreeItem2.RemoveItem(2);
// Removes all subitems of the oTreeItem2 item