Applies To: | TreeView |
Description
This method is used to delete items from a TreeView object.
The argument to DeleteItems is a 2-element array as follows:
[1] | Item number | Integer. |
[2] | Number of Items | Integer. |
Item number specifies the index of the first item to be removed.
Number of items specifies the number of items to be removed and refers to those items at the same level in the TreeView hierarchy as the Item number. Number of items is optional and defaults to 1.
Note that any children of these items will also be removed.
The result is an integer that indicates the total number of items, including children, that have been removed from the TreeView.