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


IEngineEditor.EnableUndoRedo Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Controls > ESRI ArcGIS Controls > Interfaces > IE > IEngineEditor Interface > IEngineEditor.EnableUndoRedo Method
ArcGIS Developer Help

IEngineEditor.EnableUndoRedo Method

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

Product Availability

Available with ArcGIS Engine.

Description

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.

See Also

IEngineEditor Interface