MapGuide API Reference
 All Classes Functions Variables Enumerations Enumerator Friends
void MgLayerCollection::SetItem ( INT32  index,
MgLayerBase value 
)

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

.NET Syntax
void SetItem(int index, MgLayerBase value);
Java Syntax
void SetItem(int index, MgLayerBase value);
PHP Syntax
void SetItem(int index, MgLayerBase value);
Parameters:
index(int) Position in the collection to set the layer.
value(MgLayerBase) MgLayerBase to be set in the collection.
Returns:
Returns nothing.
Exceptions:
MgIndexOutOfRangeExceptionif the specified index is out of range.