ArcObjects Library Reference  (Geometry)    

IGeometryBridge_SetGeometries_Example

[C#]

public void SetGeometries()
{
  IPoint point1 = new PointClass();
  point1.PutCoords(10,10);
 
  IPoint point2 = new PointClass();
  point2.PutCoords(20,20);
  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.