AutoCAD Map 3D 2009 Geospatial Platform Reference

AutoCAD Map 3D Geospatial Platform API

MgLayerCollection Class Reference
[MgLayerCollection]

Inherits MgDisposable.

List of all members.


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.

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 (MgLayerBase *value)
 Determines if the collection contains the specified layer.
bool Contains (CREFSTRING name)
 Determines if the collection contains the specified layer.
INT32 GetCount ()
 Gets the number of layers in the collection.
MgLayerBaseGetItem (CREFSTRING name)
 Returns the layer with the specified name.
MgLayerBaseGetItem (INT32 index)
 Gets the layer at the specified index.
INT32 IndexOf (MgLayerBase *value)
 Gets the index of the specified layer in the collection.
INT32 IndexOf (CREFSTRING name)
 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.