ArcObjects Library Reference  (Geometry)    

IGeometryCollection.InsertGeometryCollection Method

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

[Visual Basic 6.0]
Sub InsertGeometryCollection(
    ByVal Index As Long, _
    ByVal newGeometries As IGeometryCollection _
)
[Visual Basic .NET]
Public Sub InsertGeometryCollection ( _
    ByVal Index As Integer, _
    ByVal newGeometries As IGeometryCollection _
)
[C#]
public void InsertGeometryCollection (
    int Index,
    IGeometryCollection newGeometries
);
[Java]
public void insertGeometryCollection (
    int Index,
    IGeometryCollection newGeometries
)
throws
    IOException,
    AutomationException
[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);

[Visual Basic 6.0]

VB Example: Insert GeometryCollection m_pGeoColl2 within m_pGeoColl at index 3.

  m_pGeoColl.InsertGeometryCollection 3, m_pGeoColl2

See Also

IGeometryCollection Interface