# SetCellContentsUndoEntry

## Constructors

### constructor 

\+ **new SetCellContentsUndoEntry**(`cellContents`: object[], `overwrittenCells`: [[SimpleCellAddress](../interfaces/simplecelladdress.md), [ClipboardCell](../globals.md#clipboardcell)][]): *[SetCellContentsUndoEntry](setcellcontentsundoentry.md)*

*Defined in [src/UndoRedo.ts:346](https://github.com/handsontable/hyperformula/blob/e410ed0/src/UndoRedo.ts#L346)*

**Parameters:**

Name | Type | Default |
------ | ------ | ------ |
`cellContents` | object[] | - |
`overwrittenCells` | [[SimpleCellAddress](../interfaces/simplecelladdress.md), [ClipboardCell](../globals.md#clipboardcell)][] | [] |

**Returns:** *[SetCellContentsUndoEntry](setcellcontentsundoentry.md)*

## Properties

### cellContents

• **cellContents**: *object[]*

*Defined in [src/UndoRedo.ts:348](https://github.com/handsontable/hyperformula/blob/e410ed0/src/UndoRedo.ts#L348)*

___

### overwrittenCells

• **overwrittenCells**: *[[SimpleCellAddress](../interfaces/simplecelladdress.md), [ClipboardCell](../globals.md#clipboardcell)][]*

*Defined in [src/UndoRedo.ts:353](https://github.com/handsontable/hyperformula/blob/e410ed0/src/UndoRedo.ts#L353)*

## Methods

### doRedo 

▸ **doRedo**(`undoRedo`: [UndoRedo](undoredo.md)): *void*

*Defined in [src/UndoRedo.ts:362](https://github.com/handsontable/hyperformula/blob/e410ed0/src/UndoRedo.ts#L362)*

**Parameters:**

Name | Type |
------ | ------ |
`undoRedo` | [UndoRedo](undoredo.md) |

**Returns:** *void*

___

### doUndo 

▸ **doUndo**(`undoRedo`: [UndoRedo](undoredo.md)): *void*

*Defined in [src/UndoRedo.ts:358](https://github.com/handsontable/hyperformula/blob/e410ed0/src/UndoRedo.ts#L358)*

**Parameters:**

Name | Type |
------ | ------ |
`undoRedo` | [UndoRedo](undoredo.md) |

**Returns:** *void*

___

### getReferencedOldDataVersions 

▸ **getReferencedOldDataVersions**(): *number[]*

*Defined in [src/UndoRedo.ts:42](https://github.com/handsontable/hyperformula/blob/e410ed0/src/UndoRedo.ts#L42)*

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

**Returns:** *number[]*