Collapse
Collapse()
Force collapse of tree item
Applies to: TreeItem
Introduced in KCML version 5.02
This method is used in conjunction with the Item() method to collapse levels within a tree control. The ExpandChange() event is called each time a level is expanded and again when a level is collapsed.
Example:
.treeControl1.Item(ItemToCollapse).Collapse()
Tree levels can be expanded again with the Expand() method.