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


IEngineEditSketch.AddPoint Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Controls > ESRI ArcGIS Controls > Interfaces > IE > IEngineEditSketch Interface > IEngineEditSketch.AddPoint Method
ArcGIS Developer Help

IEngineEditSketch.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
);
[C++]
HRESULT AddPoint(
  IPoint* point,
  VARIANT_BOOL allowUndo
);
[C++]
Parameters
point [in]

point is a parameter of type IPoint* allowUndo [in]
allowUndo is a parameter of type bool

Product Availability

Available with ArcGIS Engine.

Description

Use the AddPoint method to add a point to the geometry held in the edit sketch. The point parameter specifies 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.

Remarks

This method fires the IEngineEditEvents::OnVertexAdded, IEngineEditEvents::OnSketchModified and IEngineEditEvents::OnAfterDrawSketch events.

See Also

IEngineEditSketch Interface