This document is archived and information here might be outdated.  Recommended version.


IEditSketch.AddPoint Method (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (Editor)  

IEditSketch.AddPoint Method

Adds a point to the edit sketch. If allowUndo is true, a new operation will be created.

[Visual Basic .NET]
Public Sub AddPoint ( _
    ByVal point As IPoint, _
    ByVal allowUndo As Boolean _
)
[C#]
public void AddPoint (
    IPoint point,
    bool allowUndo
);

Product Availability

Available with ArcGIS Desktop.

Remarks

Use the AddPoint method to build the geometry held in the edit sketch. The required point parameter specifies the location of the next point in the sketch. In all cases, new segments are added linking the edit sketch to the provided point, except where the geometry type is set to Point or the point represents the very first point in the edit sketch.


In the above illustration, a new segment is added to a Polyline using the AddPoint method.

See Also

IEditSketch Interface

.NET Samples

Angle Angle shape constructor (Code Files: AngleAngleCstr)