# ChangeNamedExpressionUndoEntry

## Constructors

### constructor

\+ **new ChangeNamedExpressionUndoEntry**(`namedExpression`: [InternalNamedExpression](internalnamedexpression.md), `newContent`: [RawCellContent](../globals.md#rawcellcontent), `oldContent`: [ClipboardCell](../globals.md#clipboardcell), `scope?`: undefined | number, `options?`: [NamedExpressionOptions](../globals.md#namedexpressionoptions)): *[ChangeNamedExpressionUndoEntry](changenamedexpressionundoentry.md)*

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

**Parameters:**

Name | Type |
------ | ------ |
`namedExpression` | [InternalNamedExpression](internalnamedexpression.md) |
`newContent` | [RawCellContent](../globals.md#rawcellcontent) |
`oldContent` | [ClipboardCell](../globals.md#clipboardcell) |
`scope?` | undefined &#124; number |
`options?` | [NamedExpressionOptions](../globals.md#namedexpressionoptions) |

**Returns:** *[ChangeNamedExpressionUndoEntry](changenamedexpressionundoentry.md)*

## Properties

### namedExpression

• **namedExpression**: *[InternalNamedExpression](internalnamedexpression.md)*

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

___

### newContent

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

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

___

### oldContent

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

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

___

### options

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

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

___

### scope

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

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

## Methods

### doRedo

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

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

**Parameters:**

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

**Returns:** *void*

___

### doUndo

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

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

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