# AddColumnsUndoEntry

## Constructors

### constructor

\+ **new AddColumnsUndoEntry**(`command`: [AddColumnsCommand](addcolumnscommand.md), `overwrittenCells`: [[SimpleCellAddress](../interfaces/simplecelladdress.md), [ClipboardCell](../globals.md#clipboardcell)][][]): *[AddColumnsUndoEntry](addcolumnsundoentry.md)*

*Defined in [hyperformula/src/UndoRedo.ts:225](https://github.com/handsontable/hyperformula/blob/927d211/hyperformula/src/UndoRedo.ts#L225)*

**Parameters:**

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

**Returns:** *[AddColumnsUndoEntry](addcolumnsundoentry.md)*

## Properties

### command

• **command**: *[AddColumnsCommand](addcolumnscommand.md)*

*Defined in [hyperformula/src/UndoRedo.ts:227](https://github.com/handsontable/hyperformula/blob/927d211/hyperformula/src/UndoRedo.ts#L227)*

___

### overwrittenCells

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

*Defined in [hyperformula/src/UndoRedo.ts:229](https://github.com/handsontable/hyperformula/blob/927d211/hyperformula/src/UndoRedo.ts#L229)*

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:238](https://github.com/handsontable/hyperformula/blob/927d211/hyperformula/src/UndoRedo.ts#L238)*

**Parameters:**

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

**Returns:** *void*

___

### doUndo

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

*Defined in [hyperformula/src/UndoRedo.ts:234](https://github.com/handsontable/hyperformula/blob/927d211/hyperformula/src/UndoRedo.ts#L234)*

**Parameters:**

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

**Returns:** *void*

___

### getReferencedOldDataVersions

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

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