Web API Reference MapGuide Open Source

void MgLayerCollection::Insert INT32  index,
MgLayer 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, MgLayer value);
Java Syntax
void Insert(int index, MgLayer value);
PHP Syntax
void Insert(int index, MgLayer value);

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