AutoCAD Map 3D 2009 Geospatial Platform Reference

AutoCAD Map 3D Geospatial Platform API

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

Inserts the specified object at the specified index within the collection. Items following the insertion point are moved down to accommodate the new item. Throws an invalid argument exception if the specified index is out of range.

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

Parameters:
index (int) Index at which to insert the object.
value (MgGeometry) Object to insert.
Exceptions:
MgIndexOutOfRangeException