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

ISketchOperation2.Finish Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Editor > ESRI.ArcGIS.Editor > Interfaces > IS > ISketchOperation2 Interface > ISketchOperation2.Finish Method
ArcGIS Developer Help

ISketchOperation2.Finish Method

Finishes the operation and puts it into the operation stack. Call this after the sketch has been modified.

[Visual Basic .NET]
Public Sub Finish ( _
    ByVal invalEnv As IEnvelope, _
    ByVal opType As esriSketchOperationType, _
    ByVal data As Object _
public void Finish (
    IEnvelope invalEnv,
    esriSketchOperationType opType,
    object data

Product Availability

Available with ArcGIS Desktop.


InvalEnv determines the envelope that will be invalidated (refreshed) when the sketch operation is completed.  OpType determines which method on IEditor::IEditSketch2 will be fired to notify all listeners that the edit sketch has changed and give them appropriate information as to how the edit sketch was modified.  Data is a variant value that can pass an IPoint as an argument to the appropriate method on IEditSketch2, such as OnVertexAdded.

See Also

ISketchOperation2 Interface