MindFusion.Charting for JavaScript Programmer's Guide
NotifyCollectionChangedEventArgs.index Property
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 index where the change occurred.

Namespace: MindFusion.Common
File: Events.js

## Syntax

JavaScript Copy Code
get index() {}

### Property Value

Type: Number
Number. The index.

## Example

The following code handles the collectionChanged event of the decorations property of a DecorationLayer object in a map.

JavaScript Copy Code
var m = MindFusion.Mapping; var markers = new m.DecorationLayer("Images"); ................... //add some Marker-s to the decorations property ...................... markers.decorations.collectionChanged.addEventListener(handleCollectionChanged); function (handleCollectionChanged) (sender, args ) { //the change has occurred on the first element if(args.index === 0) { //do something } }

## See Also

NotifyCollectionChangedEventArgs Members
NotifyCollectionChangedEventArgs Class
MindFusion.Common Namespace