Web API Reference | MapGuide Open Source

- Overview
- Modules
- Classes

Add
Clear
Contains
Contains
GetCount
GetItem
GetItem
IndexOf
IndexOf
Insert
Remove
RemoveAt
SetItem
INT32 MgLayerGroupCollection::IndexOf | ( | MgLayerGroup * | value | ) |
Gets the index of the specified layer group in the collection. .NET Syntax
`int IndexOf(MgLayerGroup value);`
Java Syntax
`int IndexOf(MgLayerGroup value);`
PHP Syntax
`int IndexOf(MgLayerGroup value);`
  Parameters:
  | value | (MgLayerBase) MgLayerGroup to search for.
Returns: Returns the layer group's index if the collection contains the specified layer group, or false (-1) otherwise.

Comments or suggestions? Send us feedback.