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


IEditor.EnableUndoRedo 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.EnableUndoRedo Method
ArcGIS Developer Help

IEditor.EnableUndoRedo Method

Enable/disable the undo/redo capabilities.

[Visual Basic .NET]
Public Sub EnableUndoRedo ( _
    ByVal Enabled As Boolean _
)
[C#]
public void EnableUndoRedo (
    bool Enabled
);

Product Availability

Available with ArcGIS Desktop.

Remarks

Use EnableUndoRedo to control whether edits to features can be rolled back.  Edits made programmatically must be done within an edit operation in order to roll back an operation.  If EnableUndoRedo is False then any changes are committed.  To discard those edits the current edit session must be stopped and edits not saved.  This method is a shortcut to calling IWorkspaceEdit::EnableUndoRedo on the current edit workspace.

See Also

IEditor Interface