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

IEditor.UndoOperation Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Editor > ESRI.ArcGIS.Editor > Interfaces > IE > IEditor Interface > IEditor.UndoOperation Method
ArcGIS Developer Help

IEditor.UndoOperation Method

Undo an edit operation.

[Visual Basic .NET]
Public Sub UndoOperation ( _
public void UndoOperation (

Product Availability

Available with ArcGIS Desktop.


Rolls back all modifications made within an edit operation.


Typically, UndoOperation and RedoOperation should be called within the context of an IOperation. Calling either of these directly, may corrupt the OperationStack. Instead, call Undo on IOperationStack to undo the last operation; this also moves the pointer down the stack, to the preceeding operation.  UndoOperation is a shortcut to calling IWorkspaceEdit::UndoOperation on the current edit workspace.

private void UNDO()
  IMxDocument m_mxDoc;
[Visual Basic .NET]
Private Sub Undo()
  Dim pMxDoc As IMxDocument = m_application.Document
End Sub

See Also

IEditor Interface