MindFusion.Charting for JavaScript Programmer's Guide
IEnumerable.clear Method
See Also
Collapse All Expand All Language Filter: All Language Filter: Multiple Language Filter: None Language Filter: C# Language Filter: Visual Basic Language Filter: Java Language Filter: JavaScript Language Filter: C++ Language Filter: XAML

C#
Visual Basic
Java
JavaScript
C++
XAML

Clears the collection.

Namespace: MindFusion.Common.Collections
File: IEnumerable.js

## Syntax

JavaScript Copy Code
function clear ()

## Example

The following example clears all items from a TreeNode element. The items property of TreeNode is of type IEnumerable.

JavaScript Copy Code
rootElement.items.clear();

## See Also

IEnumerable Members
IEnumerable Class
MindFusion.Common.Collections Namespace