# AddNamedExpressionUndoEntry

## Constructors

### constructor

\+ **new AddNamedExpressionUndoEntry**(`name`: string, `newContent`: [RawCellContent](../globals.md#rawcellcontent), `scope?`: undefined | number, `options?`: [NamedExpressionOptions](../globals.md#namedexpressionoptions)): *[AddNamedExpressionUndoEntry](addnamedexpressionundoentry.md)*

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

**Parameters:**

Name | Type |
------ | ------ |
`name` | string |
`newContent` | [RawCellContent](../globals.md#rawcellcontent) |
`scope?` | undefined &#124; number |
`options?` | [NamedExpressionOptions](../globals.md#namedexpressionoptions) |

**Returns:** *[AddNamedExpressionUndoEntry](addnamedexpressionundoentry.md)*

## Properties

### name

• **name**: *string*

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

___

### newContent

• **newContent**: *[RawCellContent](../globals.md#rawcellcontent)*

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

___

### options

• **options**? : *[NamedExpressionOptions](../globals.md#namedexpressionoptions)*

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

___

### scope

• **scope**? : *undefined | number*

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

## Methods

### doRedo

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

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

**Parameters:**

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

**Returns:** *void*

___

### doUndo

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

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

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