# PasteUndoEntry

## Constructors

### constructor

\+ **new PasteUndoEntry**(`targetLeftCorner`: [SimpleCellAddress](../interfaces/simplecelladdress.md), `oldContent`: [[SimpleCellAddress](../interfaces/simplecelladdress.md), [ClipboardCell](../globals.md#clipboardcell)][], `newContent`: [ClipboardCell](../globals.md#clipboardcell)[][], `addedGlobalNamedExpressions`: string[], `overwrittenCells`: [[SimpleCellAddress](../interfaces/simplecelladdress.md), [ClipboardCell](../globals.md#clipboardcell)][]): *[PasteUndoEntry](pasteundoentry.md)*

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

**Parameters:**

Name | Type | Default |
------ | ------ | ------ |
`targetLeftCorner` | [SimpleCellAddress](../interfaces/simplecelladdress.md) | - |
`oldContent` | [[SimpleCellAddress](../interfaces/simplecelladdress.md), [ClipboardCell](../globals.md#clipboardcell)][] | - |
`newContent` | [ClipboardCell](../globals.md#clipboardcell)[][] | - |
`addedGlobalNamedExpressions` | string[] | - |
`overwrittenCells` | [[SimpleCellAddress](../interfaces/simplecelladdress.md), [ClipboardCell](../globals.md#clipboardcell)][] | [] |

**Returns:** *[PasteUndoEntry](pasteundoentry.md)*

## Properties

### addedGlobalNamedExpressions

• **addedGlobalNamedExpressions**: *string[]*

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

___

### newContent

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

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

___

### oldContent

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

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

___

### overwrittenCells

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

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

The cells that array spills overwrote during the paste, in the order they were overwritten.

___

### targetLeftCorner

• **targetLeftCorner**: *[SimpleCellAddress](../interfaces/simplecelladdress.md)*

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

## Methods

### doRedo

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

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

**Parameters:**

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

**Returns:** *void*

___

### doUndo

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

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

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