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 _ )
[Java] public void addGeometries ( int Count, IGeometry newGeometries ) throws IOException, AutomationException
[C++] HRESULT AddGeometries( long Count, IGeometry** newGeometries );
Count is a parameter of type long
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.
Dim pPt(0 To 1) As IGeometry
Dim p1 As IPoint, p2 As IPoint
Set p1 = New point: Set p2 = New point
p1.PutCoords 1000, 1000
p2.PutCoords 2000, 2000
Set pPt(0) = p1
Set pPt(1) = p2
m_pGeoColl.AddGeometries 2, pPt(0)
When using VBNET you must use the IGeometryBridge interface to call this method.