ASP.NET Pack Programmer's Guide
NotifyCollectionChangedEventArgs Class
See Also
 





Provides data for collectionChanged events.

Namespace: MindFusion.Mapping
Package: Events.js

 Syntax

JavaScript  Copy Code

// class
NotifyCollectionChangedEventArgs.prototype = {}

 Example

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

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 )
{
     if(args.newItems.contains(mark))
     {
          //do something
     }
}

 Inheritance Hierarchy

MindFusion.Mapping.EventArgs
    MindFusion.Mapping.NotifyCollectionChangedEventArgs

 See Also

NotifyCollectionChangedEventArgs Members
MindFusion.Mapping Namespace