MindFusion.Charting for JavaScript Programmer's Guide
IEnumerable.remove 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

Removes an element from the collection.

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

## Syntax

JavaScript Copy Code
function remove (item)

### Parameters

item

  Type: Object
  Object. The object to remove.

## Example

The following code checks if an item called _item is contained within the collection of items of a ListView after it has changed and if yes, removes it.

JavaScript Copy Code
istView.selectionChanged.addEventListener(listSelectionChanged); function listSelectionChanged(sender, args) { if( args.newItems.items().contains(_item)) { args.newItems.items().remove(_item); } }

## See Also

IEnumerable Members
IEnumerable Class
MindFusion.Common.Collections Namespace