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


ISketchOperation2 Interface (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Editor)  

ISketchOperation2 Interface

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

Product Availability

Available with ArcGIS Desktop.

Members

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.

CoClasses that implement ISketchOperation2

CoClasses and 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

.NET Related Topics

Working with the edit sketch