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


ISketchOperation2.Finish Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Editor)  

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 _
)
[C#]
public void Finish (
    IEnvelope invalEnv,
    esriSketchOperationType opType,
    object data
);

Product Availability

Available with ArcGIS Desktop.

Remarks

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

.NET Related Topics

Working with the edit sketch