Clear Method

This method clears all nodes in a TreeView control.

TreeView object.Clear()

Client support

   Newlook Smartclient only.

Parameters

None.

Returns

Returns a Boolean indicating the success or failure of the action.

Examples

The following example removes all nodes from a TreeView control:

JSCRIPT

//Clear nodes from tree view

App.ActiveForm.TreeViewControl.Nodes.Clear();

 

//Refresh list

App.RefreshForm();

See Also

Add Method - Nodes | Nodes Collection

Applies To

TreeView Nodes collection


© 2004-2021 looksoftware. All rights reserved.