[Overview][Constants][Types][Classes][Procedures and functions][Index] |
Removes tree nodes in the container and its internal cache.
Source position: comctrls.pp line 3265
public procedure TTreeNodes.Clear; |
Clear is a method used to remove all of the existing TTreeNode instances found in the container. In addition, the internal TNodeCache for the container is cleared.
Clear visits the tree nodes in the container and calls its Delete method to physically remove the node. This process is repeated until there a TTreeNode instance is not available from the GetLastNode method. The internal selection list for the container is cleared, as are child accessibility objects in the Owner (TCustomTreeView).
Clear encloses these operations with BeginUpdate and EndUpdate to prevent updates to the container while the method is active.
|
Starts an update process for the tree nodes in the container. |
|
|
Finishes an update process for the tree nodes in the container. |
|
|
Gets the last top-level tree node in the container. |
|
|
Frees the current tree node when the Deleting property is not True. |
|
|
TNodeCache - a cache (temporary storage record) for a TTreeNode and its index. |
Version 3.2 | Generated 2024-02-25 | Home |