Web API Reference | MapGuide Open Source

- Overview
- Modules
- Classes

# MgMapCollection Class Reference
[MgMapCollection]

Manipulates collections of MgMapBase objects. More...

Inherits MgGuardDisposable.

List of all members.

## Public Member Functions
void | Add (MgMapBase *value)
| Adds the specified map to the end of the collection.
void | Clear ()
| Removes all maps from the collection.
bool | Contains (MgMapBase *value)
| Determines if the collection contains the specified map.
bool | Contains (CREFSTRING name)
| Determines if the collection contains the specified map.
INT32 | GetCount ()
| Gets the number of map in the collection.
MgMapBase * | GetItem (CREFSTRING name)
| Gets the map with the specified name.
MgMapBase * | GetItem (INT32 index)
| Gets the map at the specified index.
INT32 | IndexOf (MgMapBase *value)
| Gets the index of the specified map in the collection.
INT32 | IndexOf (CREFSTRING name)
| Gets the index of the specified map in the collection.
void | Insert (INT32 index, MgMapBase *value)
| Inserts a map at a specified index within the collection.
| MgMapCollection ()
| Constructs an empty MgMapCollection object.
bool | Remove (MgMapBase *value)
| Removes a map from the collection.
void | RemoveAt (INT32 index)
| Removes a map from the collection at the specified index.
void | SetItem (INT32 index, MgMapBase *value)
| Sets the map in the collection at the specified index to a specified value.

## Detailed Description

Manipulates collections of MgMapBase objects.

Comments or suggestions? Send us feedback.