AutoCAD Map 3D 2009 Geospatial Platform Reference

AutoCAD Map 3D Geospatial Platform API

virtual void MgGeometryCollection::SetItem ( INT32  index,
MgGeometry value 
) [virtual]

Sets the object in the collection at the specified index to the specified value. Throws an invalid argument exception if the index is out of range.

.NET Syntax
virtual void SetItem(int index, MgGeometry value);
Java Syntax
virtual void SetItem(int index, MgGeometry value);
PHP Syntax
virtual void SetItem(int index, MgGeometry value);

Parameters:
index (int) Index of the object to set.
value (MgGeometry) Object to place into the collection.
Exceptions:
MgIndexOutOfRangeException