MapGuide API Reference
 All Classes Functions Variables Enumerations Enumerator Friends
INT32 MgMapPlotCollection::IndexOf ( CREFSTRING  name)

Gets the index of the specified MapPlot 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 MapPlot to get the index of.
Returns:
Returns the MapPlot's index if the collection contains the specified MapPlot, or false (-1) otherwise.