This document is archived and information here might be outdated. Recommended version. |
Enable/disable the undo/redo capabilities.
[Visual Basic .NET]
Public Sub EnableUndoRedo ( _
ByVal Enabled As Boolean _
)
[C#]
public void EnableUndoRedo (
bool Enabled
);
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.