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


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

IGeometryCollection.SetGeometries Method

Replaces all geometries in the collection with the specified number of references to those in the input array. This method is intended for internal use only.

[Visual Basic .NET]
Public Sub SetGeometries ( _
    ByVal Count As Integer, _
    ByRef newGeometries As IGeometry _
)
[C#]
public void SetGeometries (
    int Count,
    ref IGeometry newGeometries
);
[C++]
HRESULT SetGeometries(
  long Count,
  IGeometry** newGeometries
);
[C++]
Parameters
Count 

Count is a parameter of type long newGeometries [in]
newGeometries is a parameter of type IGeometry**

Product Availability

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

Remarks

SetGeometries is used to reset the references of the geometries within the GeometryCollection . The result is that all references are changed to point only at the geometries contained within the specified array. Note that the GeometryCount changes accordingly also.

 

[C#]

When using C# you must use the IGeometryBridge interface to call this method.

[Visual Basic .NET]

When using VBNET you must use the IGeometryBridge interface to call this method.

See Also

IGeometryCollection Interface