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


SketchOperation Class (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Editor > ESRI.ArcGIS.Editor > Classes > S > SketchOperation Class
ArcGIS Developer Help

SketchOperationClass Class

Provides undo/redo capabilities for edit sketch modifications.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

Interfaces

Interfaces Description
IOperation (esriSystemUI) Provides access to members that control Operations.
ISketchOperation Provides access to members that control undo/redo capabilities for edit sketch modifications.
ISketchOperation2 Provides access to members that control undo/redo capabilities for edit sketch modifications.

Remarks

Create a Sketch operation whenever you need to provide undo/redo capabilities for modifications made to the edit sketch. For example, custom code that deletes one of the vertices in the edit sketch should use a Sketch operation so the user can undo the edit. Both IEditSketch::AddPoint and ISketchTool::AddPoint automatically create a Sketch operation.