Collapse([Recursively: Boolean = False]);
Recursively. Parameter that determines whether collapsing is recursive. If the parameter is set to True, the entire hierarchy is collapsed. If the parameter is set to False, only hierarchy of selected element is collapsed.
The Collapse method collapses the structure of the child elements of the tree.
See also: