TreeNodeCollection::Clear Method ()
.NET Framework (current version)
Empties the TreeNodeCollection object.
Assembly: System.Web (in System.Web.dll)
Use the Clear method to remove every TreeNode object from the TreeNodeCollection.
The following example demonstrates how to use the Clear method to programmatically empty a TreeNodeCollection. Notice that the Nodes and ChildNodes properties return a TreeNodeCollection object.
.NET Framework
Available since 2.0
Available since 2.0
Show:
