v5.20192.624
|

UndoStack Class

Controls undo and redo operations in the FlexSheet.

Hierarchy

  • UndoStack

Constructors

constructor

Properties

canRedo

canRedo: boolean

Checks whether a redo action can be performed.

canUndo

canUndo: boolean

Checks whether an undo action can be performed.

stackSize

stackSize: number

Gets or sets the size of the undo stack.

Methods

clear

  • clear(): void
  • Clears the undo stack.

    Returns void

onUndoStackChanged

  • onUndoStackChanged(): void

redo

  • redo(): void
  • Redo the last undone action.

    Returns void

undo

  • undo(): void
  • Undo the last action.

    Returns void

Events

undoStackChanged

undoStackChanged: Event

Occurs after the undo stack has changed.