Web API Reference MapGuide Open Source

INT32 MgLayerCollection::IndexOf MgLayer value  ) 
 

Gets the index of the specified layer in the collection.

.Net Syntax
int IndexOf(MgLayer value);
Java Syntax
int IndexOf(MgLayer value);
PHP Syntax
int IndexOf(MgLayer value);

Parameters:
value (MgLayer) MgLayer to search for.
Returns:
Returns the layer's index if the collection contains the specified layer, or false (-1) otherwise.