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

Gets the element at the given index.

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

## Syntax

JavaScript Copy Code
function item (index)

### Parameters

index

  Type: Number
  Number. The index.

### Return Value

Type: Object
Object. The element at the given index.

## Example

The following code checks if the old items of a ListView instance, which have changed have an item called item1 at the beginning of the collection:

JavaScript Copy Code
listView.selectionChanged.addEventListener(listSelectionChanged); function listSelectionChanged(sender, args) { if( args.oldItems[0] == item1) { //do something } }

## See Also

IEnumerable Members
IEnumerable Class
MindFusion.Common.Collections Namespace