Web API Reference MapGuide Open Source

void MgLayerCollection::SetItem INT32  index,
MgLayer value
 

Sets the layer in the collection at the specified index to the specified value.

.Net Syntax
void SetItem(int index, MgLayer value);
Java Syntax
void SetItem(int index, MgLayer value);
PHP Syntax
void SetItem(int index, MgLayer value);

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