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

TreeListNodes.Clear() Method

Removes all elements from the current node collection.

Namespace: DevExpress.XtraTreeList.Nodes

Assembly: DevExpress.XtraTreeList.v18.2.dll

Declaration

public void Clear()

Remarks

All Tree List nodes are stored in the TreeList.Nodes collection. To remove all children from a particular node, use the Clear method.

To remove all nodes from the Tree List, use the TreeList.ClearNodes method.

The following code snippets (auto-collected from DevExpress Examples) contain references to the Clear() method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also