This document is archived and information here might be outdated.  Recommended version.


IGeometryCollection.InsertGeometries Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IG > IGeometryCollection Interface > IGeometryCollection.InsertGeometries Method
ArcGIS Developer Help

IGeometryCollection.InsertGeometries Method

Inserts at the specified index references to some number of geometries in the input array. This method is intended for internal use only.

[Visual Basic .NET]
Public Sub InsertGeometries ( _
    ByVal Index As Integer, _
    ByVal Count As Integer, _
    ByRef newGeometries As IGeometry _
)
[C#]
public void InsertGeometries (
    int Index,
    int Count,
    ref IGeometry newGeometries
);
[C++]
HRESULT InsertGeometries(
  long Index,
  long Count,
  IGeometry** newGeometries
);
[C++]
Parameters
Index 

Index is a parameter of type long Count
Count is a parameter of type long newGeometries [in]
newGeometries is a parameter of type IGeometry**

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Remarks

The geometries are inserted before the ith (index) element in the list. Use an array of geometries and give the exact number (count ) of elements in the array. A too large value for the count parameter causes exceeding the boundary of the array and will cause an application error. To place the geometries last in the collection then use the addGeometries method.

 

[C#]

When using C# you must use the IGeometryBridge interface to call this method.

[Visual Basic .NET]

When using VBNET you must use the IGeometryBridge interface to call this method.

See Also

IGeometryCollection Interface