This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Editor > ESRI.ArcGIS.Editor > Interfaces > IS > ISketchOperation2 Interface > ISketchOperation2.Finish Method (ArcObjects .NET 10.4 SDK) |
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 );
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.