ArcObjects Library Reference  (Geometry)    



public void SetGeometries()
  IPoint point1 = new PointClass();
  IPoint point2 = new PointClass();
  IGeometry[] geometryArray = new IGeometry[2];
  geometryArray[0] = point1 as IGeometry;
  geometryArray[1] = point2 as IGeometry;
  IGeometryCollection geometryCollection = new MultipointClass();
  IGeometryBridge geometryBridge = new GeometryEnvironmentClass();
  //override all existing geometries and insert geometries from geometryArray
  geometryBridge.SetGeometries(geometryCollection, ref geometryArray);

[Visual Basic 6.0, Visual Basic .NET, C++]
No example is available for Visual Basic 6.0, Visual Basic .NET, or C++. To view a C# example, click the Language Filter button Language Filter in the upper-left corner of the page.