AutoCAD Map 3D 2009 Geospatial Platform Reference From AutoCAD Map 3D Geospatial Platform API previous page next page Overview Modules Classes MgPolygonCollection Add Clear Contains GetCount GetItem IndexOf Insert MgPolygonCollection Remove RemoveAt SetItem virtual void MgPolygonCollection::Insert ( INT32 index, MgPolygon * value ) [virtual] Inserts the specified polygon 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, MgPolygon value); Java Syntax virtual void Insert(int index, MgPolygon value); PHP Syntax virtual void Insert(int index, MgPolygon value); Parameters: index (int) Index at which to insert the coordinate. value (MgPolygon) polygon to insert. Exceptions: MgIndexOutOfRangeException previous page start next page