This document is archived and information here might be outdated. Recommended version. |
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 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.