This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Controls > ESRI ArcGIS Controls > Interfaces > IE > IEngineEditor Interface > IEngineEditor.EnableUndoRedo Method (ArcObjects .NET 10.4 SDK) |
Indicates if undo/redo capabilities are enabled.
[Visual Basic .NET] Public Sub EnableUndoRedo ( _ ByVal Enabled As Boolean _ )
[C#] public void EnableUndoRedo ( bool Enabled );
[C++]
HRESULT EnableUndoRedo(
VARIANT_BOOL Enabled
);
[C++]
Parameters Enabled [in] Enabled is a parameter of type VARIANT_BOOL
Use EnableUndoRedo to control whether edits to features can be rolled back. When set to True, an edit made programmatically must be performed within an edit operation so that it can be rolled back. When set to False, no individual edit operation can be undone.
Calling IEngineEditor::StopEditing with a False parameter will discard all of the edits made in the edit session.
By default EnableUndoRedo is True. The method can only be called when there is an active edit session and only applies to edit operations; it does not apply to sketch operations.