ArcObjects Library Reference  (Geometry)    

IGeometryBridge_AddWKSPointZs_Example

[C#]
public void AddWKSPointZs()
{
  int length = 10;
  WKSPointZ[] pointArray = new WKSPointZ[length];
  for (int i = 0; i < length; i++)
  {
    pointArray[i] = new WKSPointZ();
    pointArray[i].X = i * 10;
    pointArray[i].Y = i * 10;
    pointArray[i].Z = i * 10;
  }
  IPointCollection4 pointCollection = new MultipointClass();
  //adds WKSpointZs to pointCollection 
  IGeometryBridge geometryBridge = new GeometryEnvironmentClass();
  geometryBridge.AddWKSPointZs(pointCollection, ref pointArray);
  
   System.Windows.Forms.MessageBox.Show(pointCollection.PointCount + " Points added");
}

[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.