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 _
)
[C#]
public void SetGeometryCollection (
    IGeometryCollection newParts
);
[Java]
public void setGeometryCollection (
    IGeometryCollection newParts
)
throws
    IOException,
    AutomationException
[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