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


IGeometryCollection.SetGeometryCollection Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Geometry)  

IGeometryCollection.SetGeometryCollection Method

Replaces all geometries in the collection with references to geometries from the input collection.

[Visual Basic .NET]
Public Sub SetGeometryCollection ( _
    ByVal newParts As IGeometryCollection _
)
[C#]
public void SetGeometryCollection (
    IGeometryCollection newParts
);
[C++]
HRESULT SetGeometryCollection(
  IGeometryCollection* newParts
);
[C++]

Parameters newParts
newParts is a parameter of type IGeometryCollection

Product Availability

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

Remarks

SetGeometryCollection copies the geometry references from one GeometryCollection to another.

VB Example: Set GeometryCollection m_pGeoColl_A as m_pGeoColl_B


  m_pGeoColl_A.SetGeometryCollection m_pGeoColl_B

See Also

IGeometryCollection Interface