TreeList.CollapseAll() Method

Collapses all the nodes in the Tree List.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v20.1.dll

Declaration

public void CollapseAll()
Public Sub CollapseAll

Remarks

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 TreeList.ExpandAll method.

Example:


treeList1.CollapseAll();
See Also