# ChangeNamedExpressionUndoEntry Class

# Constructors

# constructor

+ new ChangeNamedExpressionUndoEntry(namedExpression: InternalNamedExpression, newContent: RawCellContent, oldContent: ClipboardCell, scope?: undefined | number, options?: NamedExpressionOptions): ChangeNamedExpressionUndoEntry

Defined in hyperformula/src/UndoRedo.ts:427 (opens new window)

Parameters:

Name Type
namedExpression InternalNamedExpression
newContent RawCellContent
oldContent ClipboardCell
scope? undefined | number
options? NamedExpressionOptions

Returns: ChangeNamedExpressionUndoEntry

# Properties

# namedExpression Readonly

• namedExpression: InternalNamedExpression

Defined in hyperformula/src/UndoRedo.ts:429 (opens new window)


# newContent Readonly

• newContent: RawCellContent

Defined in hyperformula/src/UndoRedo.ts:430 (opens new window)


# oldContent Readonly

• oldContent: ClipboardCell

Defined in hyperformula/src/UndoRedo.ts:431 (opens new window)


# options OptionalReadonly

• options? : NamedExpressionOptions

Defined in hyperformula/src/UndoRedo.ts:433 (opens new window)


# scope OptionalReadonly

• scope? : undefined | number

Defined in hyperformula/src/UndoRedo.ts:432 (opens new window)

# Methods

# doRedo

▸ doRedo(undoRedo: UndoRedo): void

Defined in hyperformula/src/UndoRedo.ts:442 (opens new window)

Parameters:

Name Type
undoRedo UndoRedo

Returns: void


# doUndo

▸ doUndo(undoRedo: UndoRedo): void

Defined in hyperformula/src/UndoRedo.ts:438 (opens new window)

Parameters:

Name Type
undoRedo UndoRedo

Returns: void


# getReferencedOldDataVersions

▸ getReferencedOldDataVersions(): number[]

Defined in hyperformula/src/UndoRedo.ts:42 (opens new window)

Returns LazilyTransformingAstService version keys referenced by this entry's oldData. Default implementation returns empty — override in entries that store oldData.

Returns: number[]