Web API Reference | MapGuide Open Source

- Overview
- Modules
- Classes

# MgLayerGroupCollection Class Reference
[MgLayerGroupCollection]

Manipulates collections of MgLayerGroup objects. More...

Inherits MgGuardDisposable.

List of all members.

## Public Member Functions
void | Add (MgLayerGroup *value)
| Adds a layer group to the end of the collection.
void | Clear ()
| Removes all layer groups from the collection.
bool | Contains (MgLayerGroup *value)
| Determines if the collection contains the specified layer group.
bool | Contains (CREFSTRING name)
| Determines if the collection contains the specified layer group.
INT32 | GetCount ()
| Gets the number of layer groups in the collection.
MgLayerGroup * | GetItem (CREFSTRING name)
| Returns the layer group with the specified name.
MgLayerGroup * | GetItem (INT32 index)
| Gets the layer group at the specified index.
INT32 | IndexOf (MgLayerGroup *value)
| Gets the index of the specified layer group in the collection.
INT32 | IndexOf (CREFSTRING name)
| Gets the index of the specified layer group in the collection.
void | Insert (INT32 index, MgLayerGroup *value)
| Inserts a layer group at a specified location in the collection.
bool | Remove (MgLayerGroup *value)
| Removes a layer group from the collection.
void | RemoveAt (INT32 index)
| Removes a layer group from the collection at the specified index.
void | SetItem (INT32 index, MgLayerGroup *value)
| Sets the layer group in the collection at the specified index to the specified value.

## Detailed Description

Manipulates collections of MgLayerGroup objects.

Comments or suggestions? Send us feedback.