# AddRowsUndoEntry

## Constructors

### constructor 

\+ **new AddRowsUndoEntry**(`command`: [AddRowsCommand](addrowscommand.md), `overwrittenCells`: [[SimpleCellAddress](../interfaces/simplecelladdress.md), [ClipboardCell](../globals.md#clipboardcell)][][]): *[AddRowsUndoEntry](addrowsundoentry.md)*

*Defined in [hyperformula/src/UndoRedo.ts:94](https://github.com/handsontable/hyperformula/blob/7aecb9f/hyperformula/src/UndoRedo.ts#L94)*

**Parameters:**

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

**Returns:** *[AddRowsUndoEntry](addrowsundoentry.md)*

## Properties

### command

• **command**: *[AddRowsCommand](addrowscommand.md)*

*Defined in [hyperformula/src/UndoRedo.ts:96](https://github.com/handsontable/hyperformula/blob/7aecb9f/hyperformula/src/UndoRedo.ts#L96)*

___

### overwrittenCells

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

*Defined in [hyperformula/src/UndoRedo.ts:98](https://github.com/handsontable/hyperformula/blob/7aecb9f/hyperformula/src/UndoRedo.ts#L98)*

Per added span, the cells that arrays grown by the span overwrote, in the coordinates from before the span.

## Methods

### doRedo 

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

*Defined in [hyperformula/src/UndoRedo.ts:107](https://github.com/handsontable/hyperformula/blob/7aecb9f/hyperformula/src/UndoRedo.ts#L107)*

**Parameters:**

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

**Returns:** *void*

___

### doUndo 

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

*Defined in [hyperformula/src/UndoRedo.ts:103](https://github.com/handsontable/hyperformula/blob/7aecb9f/hyperformula/src/UndoRedo.ts#L103)*

**Parameters:**

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

**Returns:** *void*

___

### getReferencedOldDataVersions 

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

*Defined in [hyperformula/src/UndoRedo.ts:42](https://github.com/handsontable/hyperformula/blob/7aecb9f/hyperformula/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[]*