ASP.NET Pack Programmer's Guide
Dictionary.forEach Method
See Also
 





Executes a provided function once for each element.

Namespace: MindFusion.Mapping
Package: Dictionary.js

 Syntax

JavaScript  Copy Code

function forEach (callback, [context])

 Parameters

callback

function. A function to execute for each element.

context
Optional.

Object. The invokation context.

 Example

The following method prints the coordinates of each city added to the locations Dictionary:

JavaScript  Copy Code

var m = MindFusion.Mapping;

var locations = new m.Dictionary();
locations.set("Paris", new m.LatLong(-22.951916, -43.210487));
..............................

locations.forEach(function (key)
 {
 console.log(locations.get(key));
    },locations);

var m = MindFusion.Maps;

var locations = new m.Dictionary();
locations.set("Paris", new m.LatLong(-22.951916, -43.210487));
..............................

locations.forEach(function (key)
 {
 console.log(locations.get(key));
    },locations);

 See Also

Dictionary Members
Dictionary Class
MindFusion.Mapping Namespace