# 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:224](https://github.com/handsontable/hyperformula/blob/7aecb9f/hyperformula/src/UndoRedo.ts#L224)*

**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:226](https://github.com/handsontable/hyperformula/blob/7aecb9f/hyperformula/src/UndoRedo.ts#L226)*

___

### overwrittenCells

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

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

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:237](https://github.com/handsontable/hyperformula/blob/7aecb9f/hyperformula/src/UndoRedo.ts#L237)*

**Parameters:**

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

**Returns:** *void*

___

### doUndo 

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

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

**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[]*