# ClearSheetUndoEntry

## Constructors

### constructor 

\+ **new ClearSheetUndoEntry**(`sheetId`: number, `oldSheetContent`: [ClipboardCell](../globals.md#clipboardcell)[][]): *[ClearSheetUndoEntry](clearsheetundoentry.md)*

*Defined in [src/UndoRedo.ts:330](https://github.com/handsontable/hyperformula/blob/5aaeae0/src/UndoRedo.ts#L330)*

**Parameters:**

Name | Type |
------ | ------ |
`sheetId` | number |
`oldSheetContent` | [ClipboardCell](../globals.md#clipboardcell)[][] |

**Returns:** *[ClearSheetUndoEntry](clearsheetundoentry.md)*

## Properties

### oldSheetContent

• **oldSheetContent**: *[ClipboardCell](../globals.md#clipboardcell)[][]*

*Defined in [src/UndoRedo.ts:333](https://github.com/handsontable/hyperformula/blob/5aaeae0/src/UndoRedo.ts#L333)*

___

### sheetId

• **sheetId**: *number*

*Defined in [src/UndoRedo.ts:332](https://github.com/handsontable/hyperformula/blob/5aaeae0/src/UndoRedo.ts#L332)*

## Methods

### doRedo 

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

*Defined in [src/UndoRedo.ts:342](https://github.com/handsontable/hyperformula/blob/5aaeae0/src/UndoRedo.ts#L342)*

**Parameters:**

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

**Returns:** *void*

___

### doUndo 

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

*Defined in [src/UndoRedo.ts:338](https://github.com/handsontable/hyperformula/blob/5aaeae0/src/UndoRedo.ts#L338)*

**Parameters:**

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

**Returns:** *void*

___

### getReferencedOldDataVersions 

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

*Defined in [src/UndoRedo.ts:43](https://github.com/handsontable/hyperformula/blob/5aaeae0/src/UndoRedo.ts#L43)*

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

**Returns:** *number[]*