ArcObjects Library Reference (Controls)  

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 VARIANT_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