ASP.NET Pack Programmer's Guide
IEnumerable.reverse Method
See Also
 





Gets the collection as an array in reverse order.

Namespace: MindFusion.Mapping
Package: IEnumerable.js

 Syntax

JavaScript  Copy Code

function reverse ()

 Return Value

Array. The underlying array data structure of the collection in reverse order.

 Example

The following code creates a new Array with the reversed items in a DecorationLayer decorations property. The decorations property is of type ObservableCollection, which derives from IEnumerable.

JavaScript  Copy Code

var m = MindFusion.;

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

// create some markers with images
var mark = new m.Marker(new m.LatLong(-22.951916, -43.210487));
mark.imageSrc = "./images/christ_redeemer.png";
mark.text = "Christ the Redeemer";
markers.decorations.add(mark);

mark = new m.Marker();
mark.location = new m.LatLong(41.89021, 12.492231);
mark.imageSrc = "./images/colosseum100.png";
mark.text = "Colloseum";
markers.decorations.add(mark);
...........................
...........................

var reversedItems = markers.decorations.reverse();

 See Also

IEnumerable Members
IEnumerable Class
MindFusion.Mapping Namespace