MapGuide API Reference
 All Classes Functions Variables Enumerations Enumerator Friends
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:
MgIndexOutOfRangeExceptionif the specified index is out of range.