# SetCellContentsUndoEntry Class

# Constructors

# constructor

+ new SetCellContentsUndoEntry(cellContents: object[], overwrittenCells: [SimpleCellAddress, ClipboardCell][]): SetCellContentsUndoEntry

Defined in hyperformula/src/UndoRedo.ts:350 (opens new window)

Parameters:

Name Type Default
cellContents object[] -
overwrittenCells [SimpleCellAddress, ClipboardCell][] []

Returns: SetCellContentsUndoEntry

# Properties

# cellContents Readonly

• cellContents: object[]

Defined in hyperformula/src/UndoRedo.ts:352 (opens new window)


# overwrittenCells Readonly

• overwrittenCells: [SimpleCellAddress, ClipboardCell][]

Defined in hyperformula/src/UndoRedo.ts:357 (opens new window)

# Methods

# doRedo

▸ doRedo(undoRedo: UndoRedo): void

Defined in hyperformula/src/UndoRedo.ts:366 (opens new window)

Parameters:

Name Type
undoRedo UndoRedo

Returns: void


# doUndo

▸ doUndo(undoRedo: UndoRedo): void

Defined in hyperformula/src/UndoRedo.ts:362 (opens new window)

Parameters:

Name Type
undoRedo UndoRedo

Returns: void


# getReferencedOldDataVersions

▸ getReferencedOldDataVersions(): number[]

Defined in hyperformula/src/UndoRedo.ts:42 (opens new window)

Returns LazilyTransformingAstService version keys referenced by this entry's oldData. Default implementation returns empty — override in entries that store oldData.

Returns: number[]