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


ISketchOperation2 Interface (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
ArcGIS Developer Help

ISketchOperation2 Interface

Provides access to members that control undo/redo capabilities for edit sketch modifications.

Product Availability

Available with ArcGIS Desktop.

Members

Name Description
Method Finish Finishes the operation and puts it into the operation stack. Call this after the sketch has been modified.
Write-only property MenuString The text that appears in the undo menu choice.
Method Start Starts the operation, caching the existing sketch. Call this before modifying the sketch.

Classes that implement ISketchOperation2

Classes Description
SketchOperation Provides undo/redo capabilities for edit sketch modifications.

Remarks

ISketchOperation2 was added to provide a new implementation for the Finish method. The new implementation allows tools to give more information about what they modified; typically, the edited sketch point is passed back to clients listening to editor events (IEditEvents2).

For example, if a point is deleted from an edit sketch and ISketchOperation2::Finish is used to complete the operation, the deleted point is passed to clients responding to IEditEvents2::OnVertexDeleted.

See Also

IEditor Interface | IEditAttributeProperties Interface | IEnvelope Interface | IOperation Interface