ArcObjects Library Reference (Geometry)  

IGeometryBridge2.AddWKSPoints Method

Adds vertices to this Path, Ring, Polyline, or Polygon, or adds new points to this Multipoint, Triangles, TriangleFan, or TriangleStrip.

[Visual Basic .NET]
Public Sub AddWKSPoints ( _
    ByVal pPointCollection As IPointCollection4, _
    ByRef pointStructures As WKSPoint[] _
)
[C#]
public void AddWKSPoints (
    IPointCollection4 pPointCollection,
    ref WKSPoint[] pointStructures
);
[C++]
HRESULT AddWKSPoints(
  IPointCollection4* pPointCollection,
  Array* pointStructures
);
[C++]

Parameters

pPointCollection [in]

  pPointCollection is a parameter of type IPointCollection4

pointStructures [in]   pointStructures is a parameter of type Array

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.
[C#]

    public void AddWKSPoints()
    {
        int length = 10;
        WKSPoint[] pointArray = new WKSPoint[length];
        for (int i = 0; i < length; i++)
        {
            pointArray[i] = new WKSPoint();
            pointArray[i].X = i * 10;
            pointArray[i].Y = i * 10;

        }
        IPointCollection4 pointCollection = new MultipointClass();
        //adds WKSpointZs to pointCollection  
        IGeometryBridge2 geometryBridge = new GeometryEnvironmentClass();
        geometryBridge.AddWKSPoints(pointCollection, ref pointArray);
        System.Windows.Forms.MessageBox.Show(pointCollection.PointCount + " Points added");
    }

See Also

IGeometryBridge2 Interface

.NET Snippets

Create Test Polyline from Geometry Environment |

.NET Related Topics

Working with GeometryEnvironment |