MindFusion.Charting for JavaScript Programmer's Guide
IEnumerable.removeRange Method
See Also
 






Removes a range of elements starting from the given index.

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

 Syntax

JavaScript  Copy Code

function removeRange (index, count)

 Parameters

index

Type: Number
Number. The starting index of the range.

count

Type: Number
Number. The length of the range.

 Example

The following code checks if the count of items in a ListView is more than 100 and if yes, removes the first 50 elements:

JavaScript  Copy Code
if (listView.items().count()>100)
   listView.items().removeRange(0, 50);

 See Also

IEnumerable Members
IEnumerable Class
MindFusion.Common.Collections Namespace