ListCaptions.clear

Syntax

clear();

Description

The clear method removes all titles.

Example

Executing the example requires the SimpleTreeList component with the Tree identifier (see Example of Creating the SimpleTreeList Component).

// Get tree titles
caps = Tree.getCaptions();
// Remove all titles
caps.clear();

After executing the example all titles are removed.

See also:

ListCaptions