This method when called collapses all the nodes which are currently expanded in the Tree List. If only a particular node(s) needs to be collapsed via code set its TreeListNode.Expanded property to false. To expand all nodes in the Tree List use the ExpandAll method.
Example:
C# |
treeList1.CollapseAll();
|
VB |
TreeList1.CollapseAll()
|