Web API Reference MapGuide Open Source
INT32 MgMapCollection::IndexOf ( CREFSTRING  name  ) 

Gets the index of the specified map in the collection.

.NET Syntax
int IndexOf(string name);
Java Syntax
int IndexOf(String name);
PHP Syntax
int IndexOf(string name);

Parameters:
name (String/string) Name of the map to get the index of.
Returns:
Returns the map's index if the collection contains the specified map, or false (-1) otherwise.


Comments or suggestions? Send us feedback.