InterfaceIUndoRedoService
The service handling the undo-redo stack.
Definition
Namespace:Telerik.Windows.Diagrams.Core
Assembly:Telerik.Windows.Diagrams.Core.dll
Syntax:
public interface IUndoRedoService
Properties
IsActive
Gets the is active property.
Declaration
bool IsActive { get; }
Property Value
Determines whether the undoRedo service is executing undo or redo action at the moment.
RedoBufferSize
Gets or sets the size of the redo buffer.
Declaration
int RedoBufferSize { get; set; }
Property Value
The size of the redo buffer.
RedoStack
Gets the redo stack.
Declaration
IEnumerable<ICommand> RedoStack { get; }
Property Value
UndoBufferSize
Gets or sets the size of the undo buffer.
Declaration
int UndoBufferSize { get; set; }
Property Value
The size of the undo buffer.
UndoStack
Gets the undo stack.
Declaration
IEnumerable<ICommand> UndoStack { get; }
Property Value
Methods
AddCommand(ICommand)
Adds the given command without executing it.
Declaration
void AddCommand(ICommand command)
Parameters
command
The command to add.
CanRedo()
Determines whether this instance can redo.
Declaration
bool CanRedo()
Returns
true if this instance can redo; otherwise, false.
CanUndo()
Determines whether this instance can undo.
Declaration
bool CanUndo()
Returns
true if this instance can undo; otherwise, false.
ExecuteCommand(ICommand, object)
Executes the command.
RemoveCommand(ICommand)
Removes the command.
Declaration
void RemoveCommand(ICommand command)
Parameters
command
The command.
Undo(object)
Undoes this instance.
Events
ActionExecuted
Declaration
event EventHandler<CommandEventArgs> ActionExecuted
Event Value