ArcObjects Library Reference  (Geometry)    

IGeometryBridge_InsertGeometries_Example

[C#]
public void InsertGeometries()
{
  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;
  
  //insert geometries at position 0
  IGeometryCollection geometryCollection = new MultipointClass();
  IGeometryBridge geometryBridge = new GeometryEnvironmentClass();
  geometryBridge.InsertGeometries(geometryCollection, 0, 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.