UndoRedoService
Service managing the undo redo actions.
Definition
Namespace:Telerik.Windows.Diagrams.Core
Assembly:Telerik.WinControls.RadDiagram.dll
Syntax:
public class UndoRedoService : IUndoRedoService
Inheritance: objectUndoRedoService
Implements:
Constructors
Initializes a new instance of the UndoRedoService class.
public UndoRedoService()
Properties
Gets the is active property.
public bool IsActive { get; }
Determines whether the undoRedo service is executing undo or redo action at the moment.
Implements:
Gets or sets the size of the redo buffer. Must be non-negative integer.
public int RedoBufferSize { get; set; }
The size of the redo buffer.
Implements:
Gets the redo stack.
public IEnumerable<ICommand> RedoStack { get; }
Implements:
Gets or sets the size of the undo buffer. Must be non-negative integer.
public int UndoBufferSize { get; set; }
The size of the undo buffer.
Implements:
Methods
Adds the given command without executing it.
public void AddCommand(ICommand command)
The command to add.
Implements:
Determines whether this instance can redo.
public bool CanRedo()
true if this instance can redo; otherwise, false.
Implements:
Determines whether this instance can undo.
public bool CanUndo()
true if this instance can undo; otherwise, false.
Implements:
Clears the undo and redo stacks.
public virtual void Clear()
Implements:
Raises the ActionExecuted event.
protected virtual void OnActionExecuted(CommandEventArgs args)
The CommandEventArgs instance containing the event data.
Redoes this instance.
public virtual void Redo()
Implements:
Removes the command.
Undoes this instance.
Events
Occurs when either a do or an undo command is executed.
public event EventHandler<CommandEventArgs> ActionExecuted
Implements: