AutoCAD Map 3D 2009 Geospatial Platform Reference

AutoCAD Map 3D Geospatial Platform API

void MgLayerCollection::Insert ( INT32  index,
MgLayerBase value 
)

Inserts a layer at a specified location in the collection.

Remarks:
Layers following the insertion point are moved down to accommodate the new layer.
.NET Syntax
void Insert(int index, MgLayerBase value);
Java Syntax
void Insert(int index, MgLayerBase value);
PHP Syntax
void Insert(int index, MgLayerBase value);

Parameters:
index (int) Position in the collection to insert the layer.
value (MgLayerBase) Layer to be inserted in the collection.
Returns:
Returns nothing.
Exceptions:
MgIndexOutOfRangeException if the specified index is out of range.