This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IG > IGeometryCollection Interface > IGeometryCollection.InsertGeometries Method (ArcObjects .NET 10.5 SDK) |
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
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.
When using C# you must use the IGeometryBridge interface to call this method.
When using VBNET you must use the IGeometryBridge interface to call this method.