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





The base type of classes that define arguments passed to event handler functions.

Namespace: MindFusion.Mapping
Package: Events.js

 Syntax

JavaScript  Copy Code

// class
EventArgs.prototype = {}

 Example

The following code handles the collectionChanging event of the decorations property of a DecorationLayer object. The event handler method receives an args argument of type NotifyCollectionChangingEventArgs, which derives from EventArgs.

JavaScript  Copy Code

var m = MindFusion.Mapping;

var markers = new m.DecorationLayer("Images");

...................
//add some Marker-s to the decorations property
......................

markers.decorations.collectionChanging.addEventListener(handleCollectionChanging);


function (handleCollectionChanging) (sender, args )
{
      if(args.oldItems.contains(marker1))
      {
          //do something
      }
}

 Inheritance Hierarchy

MindFusion.Mapping.EventArgs
    MindFusion.Mapping.CancelEventArgs
    MindFusion.Mapping.EmptyEventArgs
    MindFusion.Mapping.MapEventArgs
    MindFusion.Mapping.NotifyCollectionChangedEventArgs
    MindFusion.Mapping.PropertyEventArgs

 See Also

EventArgs Members
MindFusion.Mapping Namespace