MapGuide API Reference
 All Classes Functions Variables Enumerations Enumerator Friends
MgLayerCollection Class Reference

Manipulates collections of MgLayerBase objects. More...

+ Inheritance diagram for MgLayerCollection:

List of all members.

Public Member Functions

void Add (MgLayerBase *value)
 Adds a layer to the end of the collection.
void Clear ()
 Removes all layers from the collection.
bool Contains (CREFSTRING name)
 Determines if the collection contains the specified layer.
bool Contains (MgLayerBase *value)
 Determines if the collection contains the specified layer.
INT32 GetCount ()
 Gets the number of layers in the collection.
MgLayerBaseGetItem (INT32 index)
 Gets the layer at the specified index.
MgLayerBaseGetItem (CREFSTRING name)
 Returns the layer with the specified name.
INT32 IndexOf (CREFSTRING name)
 Gets the index of the specified layer in the collection.
INT32 IndexOf (MgLayerBase *value)
 Gets the index of the specified layer in the collection.
void Insert (INT32 index, MgLayerBase *value)
 Inserts a layer at a specified location in the collection.
bool Remove (MgLayerBase *value)
 Removes a layer from the collection.
void RemoveAt (INT32 index)
 Removes a layer from the collection at the specified index.
void SetItem (INT32 index, MgLayerBase *value)
 Sets the layer in the collection at the specified index to the specified value.

Detailed Description

Manipulates collections of MgLayerBase objects.

Remarks:
A layer's draw priority is controlled by the order of the layers in this collection. To change a layer's draw priority, remove the layer from the collection and insert it at the desired position.