ArcObjects Library Reference  (Geometry)    

IGeometryCollection.SetGeometryCollection Method

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

[Visual Basic 6.0]
Sub SetGeometryCollection(
    ByVal newParts As IGeometryCollection _
[Visual Basic .NET]
Public Sub SetGeometryCollection ( _
    ByVal newParts As IGeometryCollection _
public void SetGeometryCollection (
    IGeometryCollection newParts
public void setGeometryCollection (
    IGeometryCollection newParts
HRESULT SetGeometryCollection(
  IGeometryCollection* newParts



  newParts is a parameter of type IGeometryCollection

Product Availability

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


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