Skip to main content

UndoRedoHandler

Classes​

UndoRedoHandler​

Handler for performing operations with redoing and undoing of actions.

Remarks​

the TextWhizz is used as a text engine.

Implements​

Constructors​

Constructor​
new UndoRedoHandler(tw): UndoRedoHandler;
Parameters​
ParameterType
twITextWhizzHolder
Returns​

UndoRedoHandler

Accessors​

canRedo​
Get Signature​
get canRedo(): boolean;

Indicates if the action can be redone.

Returns​

boolean

Indicates if the action can be redone.

Implementation of​

IUndoRedoHandler.canRedo

canUndo​
Get Signature​
get canUndo(): boolean;

Indicates if the action can be undone.

Returns​

boolean

Indicates if the action can be undone.

Implementation of​

IUndoRedoHandler.canUndo

Methods​

clear()​
clear(): void;

Clears saving actions.

Returns​

void

Implementation of​

IUndoRedoHandler.clear

getSelection()​
getSelection(): ITextRange;

Returns selected text.

Returns​

ITextRange

Implementation of​

IUndoRedoHandler.getSelection

pause()​
pause(): void;

Pauses saving actions.

Returns​

void

Remarks​

can be used to combine multiple actions into one.

Implementation of​

IUndoRedoHandler.pause

redo()​
redo(): void;

Redoes an action.

Returns​

void

Implementation of​

IUndoRedoHandler.redo

resume()​
resume(): void;

Resumes saving actions.

Returns​

void

Remarks​

can be used to combine multiple actions into one.

Implementation of​

IUndoRedoHandler.resume

undo()​
undo(): void;

Undoes an action.

Returns​

void

Implementation of​

IUndoRedoHandler.undo

Was this page helpful?