Skip to main content
A newer version of this page is available.

TreeListNode.Collapse() Method

Collapses this node.

Namespace: DevExpress.XtraTreeList.Nodes

Assembly: DevExpress.XtraTreeList.v20.2.dll

NuGet Package: DevExpress.Win.TreeList

Declaration

public void Collapse()

Remarks

Use the methods below to expand and collapse tree list nodes.

The control’s BeforeExpand, AfterExpand, BeforeCollapse, and AfterCollapse events fire during expand and collapse operations. For example, you can handle the BeforeExpand event to dynamically create child nodes in unbound mode.

See Also