Click or drag to resize

IUndoRedo Interface

The UndoRedo service supports undo and redo of all changes made to a CAEXDocument.

Namespace: Aml.Engine.Services.Interfaces
Assembly: Aml.Engine (in Aml.Engine.dll) Version: 3.2
Syntax
public interface IUndoRedo : IAMLService

The IUndoRedo type exposes the following members.

Methods
 NameDescription
Public methodBeginTransaction Begins a new transaction. All changes, made to a CAEXDocument inside a transaction are treated as a single operation.
Public methodCanRedo Determines, if the service can redo a command
Public methodCanUndo Determines, if the service can undo a command
Public methodClearStacks Clears the undo and redo stacks.
Public methodEndTransaction Ends the current transaction.
Public methodLastModificationDate Gets the date of the most recently executed command for the specified document.
Public methodPause Request to not record changes of the specified document. If the recording of document changes is paused the Undo(CAEXDocument) and Redo(CAEXDocument) methods can not be applied.
Public methodPushCommand A new command is pushed on the undo stack of this service.
Public methodRedo Redo the most recently operation, which was undone
Public methodRedoActions Gets all command names of the actions in the redo stack for the provided CAEX document.
Public methodResume Request to resume recording changes of the specified document.
Public methodUndo Undo of the last operation
Public methodUndoActions Gets all command names of the actions in the undo stack for the provided CAEX document.
Top
See Also