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


IGeometryCollection.InsertGeometryCollection 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.InsertGeometryCollection Method
ArcGIS Developer Help

IGeometryCollection.InsertGeometryCollection Method

Inserts at the specified index references to all if the geometries in the input collection.

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

Index is a parameter of type long newGeometries
newGeometries is a parameter of type IGeometryCollection*

Product Availability

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

Remarks

InsertGeometryCollection merges one GeometryCollection within another at a specified index.

[C#]

//C# Example: Insert GeometryCollection geomColl2 within geomColl at index 3. geomColl.InsertGeometryCollection(3, geomColl2);

See Also

IGeometryCollection Interface