This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IG > IGeometryCollection Interface > IGeometryCollection.SetGeometries Method (ArcObjects .NET 10.4 SDK) |
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
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.
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.