MapGuide API Reference
 All Classes Functions Variables Enumerations Enumerator Friends

Gets the index of the specified layer in the collection.

.NET Syntax
int IndexOf(MgLayerBase value);
Java Syntax
int IndexOf(MgLayerBase value);
PHP Syntax
int IndexOf(MgLayerBase value);
Parameters:
value(MgLayerBase) MgLayerBase to search for.
Returns:
Returns the layer's index if the collection contains the specified layer, or false (-1) otherwise.