This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IG > IGeometryCollection Interface > IGeometryCollection.AddGeometries Method (ArcObjects .NET 10.4 SDK) |
Adds references to the specified geometries. This method is intended for internal use only.
[Visual Basic .NET] Public Sub AddGeometries ( _ ByVal Count As Integer, _ ByRef newGeometries As IGeometry _ )
[C#] public void AddGeometries ( int Count, ref IGeometry newGeometries );
[C++]
HRESULT AddGeometries(
long Count,
IGeometry** newGeometries
);
[C++]
Parameters Count Count is a parameter of type long newGeometries [in]
newGeometries is a parameter of type IGeometry
The geometries are added last in the list. Use an array of geometries (IGeometry) and the exact number (count ) of elements in the array. Exceeding the boundary of the array will cause an application error. If you don't want to place the geometries last in the collection then use the InsertGeometries 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.