# UndoRedo

Manages undo/redo stacks for all spreadsheet operations.

## oldData: Preserving Formula ASTs Across Irreversible Transformations

Some structural operations (e.g., removing rows/columns, moving cells) destroy
formula information that cannot be reconstructed from the transformation alone.
For example, when a row is removed, formulas referencing that row are rewritten
to `#REF!` — an irreversible change.

To support undo of such operations, `oldData` stores formula AST references
keyed by the LazilyTransformingAstService version at which the irreversible
transformation was applied. Each entry maps a version number to an array of
`[cellAddress, ast]` pairs. These references keep the original formulas available
independently of parser cache eviction, and are released when the snapshots expire.

### Memory Management

Without cleanup, `oldData` grows indefinitely as undo entries are evicted but
their oldData keys remain. Three mechanisms prevent this:

1. **Eviction cleanup**: When undo entries are evicted (due to `undoLimit`),
   `cleanupOldDataForEntries()` deletes their referenced oldData keys
   (unless still needed by entries on the other stack).
2. **Orphan cleanup**: Compaction may force lazy formula evaluation, which
   writes new oldData entries for already-evicted undo entries. After compaction,
   `cleanupOrphanedOldData()` removes any keys not referenced by entries on
   either stack or the in-progress batch.
3. **Short-circuit**: When `undoLimit` is 0 (undo disabled),
   `storeDataForVersion()` returns immediately to avoid storing data that
   would never be used.

## Constructors

### constructor

\+ **new UndoRedo**(`config`: [Config](config.md), `operations`: [Operations](operations.md)): *[UndoRedo](undoredo.md)*

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

**Parameters:**

Name | Type |
------ | ------ |
`config` | [Config](config.md) |
`operations` | [Operations](operations.md) |

**Returns:** *[UndoRedo](undoredo.md)*

## Properties

### oldData

• **oldData**: *Map‹number, [[SimpleCellAddress](../interfaces/simplecelladdress.md), Ast][]›* = new Map()

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

## Methods

### beginBatchMode

▸ **beginBatchMode**(): *void*

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

**Returns:** *void*

___

### cleanupOrphanedOldData

▸ **cleanupOrphanedOldData**(): *void*

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

Removes oldData entries whose version keys are not referenced by any
entry on the undo stack, redo stack, or in-progress batch. Called after
compaction forces lazy formula evaluation, which may insert oldData for
already-evicted entries.

**Returns:** *void*

___

### clearRedoStack

▸ **clearRedoStack**(): *void*

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

Clears the redo stack and removes oldData entries no longer referenced by any remaining entry.

**Returns:** *void*

___

### clearUndoStack

▸ **clearUndoStack**(): *void*

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

Clears the undo stack and removes oldData entries no longer referenced by any remaining entry.

**Returns:** *void*

___

### commitBatchMode

▸ **commitBatchMode**(): *void*

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

**Returns:** *void*

___

### isRedoStackEmpty

▸ **isRedoStackEmpty**(): *boolean*

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

**Returns:** *boolean*

___

### isUndoStackEmpty

▸ **isUndoStackEmpty**(): *boolean*

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

**Returns:** *boolean*

___

### redo

▸ **redo**(): *void*

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

**Returns:** *void*

___

### redoAddColumns

▸ **redoAddColumns**(`operation`: [AddColumnsUndoEntry](addcolumnsundoentry.md)): *void*

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

**Parameters:**

Name | Type |
------ | ------ |
`operation` | [AddColumnsUndoEntry](addcolumnsundoentry.md) |

**Returns:** *void*

___

### redoAddNamedExpression

▸ **redoAddNamedExpression**(`operation`: [AddNamedExpressionUndoEntry](addnamedexpressionundoentry.md)): *void*

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

**Parameters:**

Name | Type |
------ | ------ |
`operation` | [AddNamedExpressionUndoEntry](addnamedexpressionundoentry.md) |

**Returns:** *void*

___

### redoAddRows

▸ **redoAddRows**(`operation`: [AddRowsUndoEntry](addrowsundoentry.md)): *void*

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

**Parameters:**

Name | Type |
------ | ------ |
`operation` | [AddRowsUndoEntry](addrowsundoentry.md) |

**Returns:** *void*

___

### redoAddSheet

▸ **redoAddSheet**(`operation`: [AddSheetUndoEntry](addsheetundoentry.md)): *void*

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

**Parameters:**

Name | Type |
------ | ------ |
`operation` | [AddSheetUndoEntry](addsheetundoentry.md) |

**Returns:** *void*

___

### redoBatch

▸ **redoBatch**(`batchOperation`: [BatchUndoEntry](batchundoentry.md)): *void*

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

**Parameters:**

Name | Type |
------ | ------ |
`batchOperation` | [BatchUndoEntry](batchundoentry.md) |

**Returns:** *void*

___

### redoChangeNamedExpression

▸ **redoChangeNamedExpression**(`operation`: [ChangeNamedExpressionUndoEntry](changenamedexpressionundoentry.md)): *void*

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

**Parameters:**

Name | Type |
------ | ------ |
`operation` | [ChangeNamedExpressionUndoEntry](changenamedexpressionundoentry.md) |

**Returns:** *void*

___

### redoClearSheet

▸ **redoClearSheet**(`operation`: [ClearSheetUndoEntry](clearsheetundoentry.md)): *void*

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

**Parameters:**

Name | Type |
------ | ------ |
`operation` | [ClearSheetUndoEntry](clearsheetundoentry.md) |

**Returns:** *void*

___

### redoMoveCells

▸ **redoMoveCells**(`operation`: [MoveCellsUndoEntry](movecellsundoentry.md)): *void*

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

**Parameters:**

Name | Type |
------ | ------ |
`operation` | [MoveCellsUndoEntry](movecellsundoentry.md) |

**Returns:** *void*

___

### redoMoveColumns

▸ **redoMoveColumns**(`operation`: [MoveColumnsUndoEntry](movecolumnsundoentry.md)): *void*

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

**Parameters:**

Name | Type |
------ | ------ |
`operation` | [MoveColumnsUndoEntry](movecolumnsundoentry.md) |

**Returns:** *void*

___

### redoMoveRows

▸ **redoMoveRows**(`operation`: [MoveRowsUndoEntry](moverowsundoentry.md)): *void*

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

**Parameters:**

Name | Type |
------ | ------ |
`operation` | [MoveRowsUndoEntry](moverowsundoentry.md) |

**Returns:** *void*

___

### redoPaste

▸ **redoPaste**(`operation`: [PasteUndoEntry](pasteundoentry.md)): *void*

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

**Parameters:**

Name | Type |
------ | ------ |
`operation` | [PasteUndoEntry](pasteundoentry.md) |

**Returns:** *void*

___

### redoRemoveColumns

▸ **redoRemoveColumns**(`operation`: [RemoveColumnsUndoEntry](removecolumnsundoentry.md)): *void*

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

**Parameters:**

Name | Type |
------ | ------ |
`operation` | [RemoveColumnsUndoEntry](removecolumnsundoentry.md) |

**Returns:** *void*

___

### redoRemoveNamedExpression

▸ **redoRemoveNamedExpression**(`operation`: [RemoveNamedExpressionUndoEntry](removenamedexpressionundoentry.md)): *void*

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

**Parameters:**

Name | Type |
------ | ------ |
`operation` | [RemoveNamedExpressionUndoEntry](removenamedexpressionundoentry.md) |

**Returns:** *void*

___

### redoRemoveRows

▸ **redoRemoveRows**(`operation`: [RemoveRowsUndoEntry](removerowsundoentry.md)): *void*

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

**Parameters:**

Name | Type |
------ | ------ |
`operation` | [RemoveRowsUndoEntry](removerowsundoentry.md) |

**Returns:** *void*

___

### redoRemoveSheet

▸ **redoRemoveSheet**(`operation`: [RemoveSheetUndoEntry](removesheetundoentry.md)): *void*

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

**Parameters:**

Name | Type |
------ | ------ |
`operation` | [RemoveSheetUndoEntry](removesheetundoentry.md) |

**Returns:** *void*

___

### redoRenameSheet

▸ **redoRenameSheet**(`operation`: [RenameSheetUndoEntry](renamesheetundoentry.md)): *void*

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

**Parameters:**

Name | Type |
------ | ------ |
`operation` | [RenameSheetUndoEntry](renamesheetundoentry.md) |

**Returns:** *void*

___

### redoSetCellContents

▸ **redoSetCellContents**(`operation`: [SetCellContentsUndoEntry](setcellcontentsundoentry.md)): *void*

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

**Parameters:**

Name | Type |
------ | ------ |
`operation` | [SetCellContentsUndoEntry](setcellcontentsundoentry.md) |

**Returns:** *void*

___

### redoSetColumnOrder

▸ **redoSetColumnOrder**(`operation`: [SetColumnOrderUndoEntry](setcolumnorderundoentry.md)): *void*

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

**Parameters:**

Name | Type |
------ | ------ |
`operation` | [SetColumnOrderUndoEntry](setcolumnorderundoentry.md) |

**Returns:** *void*

___

### redoSetRowOrder

▸ **redoSetRowOrder**(`operation`: [SetRowOrderUndoEntry](setroworderundoentry.md)): *void*

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

**Parameters:**

Name | Type |
------ | ------ |
`operation` | [SetRowOrderUndoEntry](setroworderundoentry.md) |

**Returns:** *void*

___

### redoSetSheetContent

▸ **redoSetSheetContent**(`operation`: [SetSheetContentUndoEntry](setsheetcontentundoentry.md)): *void*

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

**Parameters:**

Name | Type |
------ | ------ |
`operation` | [SetSheetContentUndoEntry](setsheetcontentundoentry.md) |

**Returns:** *void*

___

### saveOperation

▸ **saveOperation**(`operation`: [UndoEntry](../interfaces/undoentry.md)): *void*

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

**Parameters:**

Name | Type |
------ | ------ |
`operation` | [UndoEntry](../interfaces/undoentry.md) |

**Returns:** *void*

___

### storeDataForVersion

▸ **storeDataForVersion**(`version`: number, `address`: [SimpleCellAddress](../interfaces/simplecelladdress.md), `ast`: Ast): *void*

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

Retains a formula AST for the given LazilyTransformingAstService version.
Skipped when `undoLimit` is 0 (undo disabled) to avoid storing data that would never be used.

**Parameters:**

Name | Type |
------ | ------ |
`version` | number |
`address` | [SimpleCellAddress](../interfaces/simplecelladdress.md) |
`ast` | Ast |

**Returns:** *void*

___

### undo

▸ **undo**(): *void*

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

**Returns:** *void*

___

### undoAddColumns

▸ **undoAddColumns**(`operation`: [AddColumnsUndoEntry](addcolumnsundoentry.md)): *void*

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

**Parameters:**

Name | Type |
------ | ------ |
`operation` | [AddColumnsUndoEntry](addcolumnsundoentry.md) |

**Returns:** *void*

___

### undoAddNamedExpression

▸ **undoAddNamedExpression**(`operation`: [AddNamedExpressionUndoEntry](addnamedexpressionundoentry.md)): *void*

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

**Parameters:**

Name | Type |
------ | ------ |
`operation` | [AddNamedExpressionUndoEntry](addnamedexpressionundoentry.md) |

**Returns:** *void*

___

### undoAddRows

▸ **undoAddRows**(`operation`: [AddRowsUndoEntry](addrowsundoentry.md)): *void*

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

**Parameters:**

Name | Type |
------ | ------ |
`operation` | [AddRowsUndoEntry](addrowsundoentry.md) |

**Returns:** *void*

___

### undoAddSheet

▸ **undoAddSheet**(`operation`: [AddSheetUndoEntry](addsheetundoentry.md)): *void*

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

**Parameters:**

Name | Type |
------ | ------ |
`operation` | [AddSheetUndoEntry](addsheetundoentry.md) |

**Returns:** *void*

___

### undoBatch

▸ **undoBatch**(`batchOperation`: [BatchUndoEntry](batchundoentry.md)): *void*

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

**Parameters:**

Name | Type |
------ | ------ |
`batchOperation` | [BatchUndoEntry](batchundoentry.md) |

**Returns:** *void*

___

### undoChangeNamedExpression

▸ **undoChangeNamedExpression**(`operation`: [ChangeNamedExpressionUndoEntry](changenamedexpressionundoentry.md)): *void*

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

**Parameters:**

Name | Type |
------ | ------ |
`operation` | [ChangeNamedExpressionUndoEntry](changenamedexpressionundoentry.md) |

**Returns:** *void*

___

### undoClearSheet

▸ **undoClearSheet**(`operation`: [ClearSheetUndoEntry](clearsheetundoentry.md)): *void*

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

**Parameters:**

Name | Type |
------ | ------ |
`operation` | [ClearSheetUndoEntry](clearsheetundoentry.md) |

**Returns:** *void*

___

### undoMoveCells

▸ **undoMoveCells**(`operation`: [MoveCellsUndoEntry](movecellsundoentry.md)): *void*

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

**Parameters:**

Name | Type |
------ | ------ |
`operation` | [MoveCellsUndoEntry](movecellsundoentry.md) |

**Returns:** *void*

___

### undoMoveColumns

▸ **undoMoveColumns**(`operation`: [MoveColumnsUndoEntry](movecolumnsundoentry.md)): *void*

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

**Parameters:**

Name | Type |
------ | ------ |
`operation` | [MoveColumnsUndoEntry](movecolumnsundoentry.md) |

**Returns:** *void*

___

### undoMoveRows

▸ **undoMoveRows**(`operation`: [MoveRowsUndoEntry](moverowsundoentry.md)): *void*

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

**Parameters:**

Name | Type |
------ | ------ |
`operation` | [MoveRowsUndoEntry](moverowsundoentry.md) |

**Returns:** *void*

___

### undoPaste

▸ **undoPaste**(`operation`: [PasteUndoEntry](pasteundoentry.md)): *void*

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

**Parameters:**

Name | Type |
------ | ------ |
`operation` | [PasteUndoEntry](pasteundoentry.md) |

**Returns:** *void*

___

### undoRemoveColumns

▸ **undoRemoveColumns**(`operation`: [RemoveColumnsUndoEntry](removecolumnsundoentry.md)): *void*

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

**Parameters:**

Name | Type |
------ | ------ |
`operation` | [RemoveColumnsUndoEntry](removecolumnsundoentry.md) |

**Returns:** *void*

___

### undoRemoveNamedExpression

▸ **undoRemoveNamedExpression**(`operation`: [RemoveNamedExpressionUndoEntry](removenamedexpressionundoentry.md)): *void*

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

**Parameters:**

Name | Type |
------ | ------ |
`operation` | [RemoveNamedExpressionUndoEntry](removenamedexpressionundoentry.md) |

**Returns:** *void*

___

### undoRemoveRows

▸ **undoRemoveRows**(`operation`: [RemoveRowsUndoEntry](removerowsundoentry.md)): *void*

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

**Parameters:**

Name | Type |
------ | ------ |
`operation` | [RemoveRowsUndoEntry](removerowsundoentry.md) |

**Returns:** *void*

___

### undoRemoveSheet

▸ **undoRemoveSheet**(`operation`: [RemoveSheetUndoEntry](removesheetundoentry.md)): *void*

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

**Parameters:**

Name | Type |
------ | ------ |
`operation` | [RemoveSheetUndoEntry](removesheetundoentry.md) |

**Returns:** *void*

___

### undoRenameSheet

▸ **undoRenameSheet**(`operation`: [RenameSheetUndoEntry](renamesheetundoentry.md)): *void*

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

**Parameters:**

Name | Type |
------ | ------ |
`operation` | [RenameSheetUndoEntry](renamesheetundoentry.md) |

**Returns:** *void*

___

### undoSetCellContents

▸ **undoSetCellContents**(`operation`: [SetCellContentsUndoEntry](setcellcontentsundoentry.md)): *void*

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

**Parameters:**

Name | Type |
------ | ------ |
`operation` | [SetCellContentsUndoEntry](setcellcontentsundoentry.md) |

**Returns:** *void*

___

### undoSetColumnOrder

▸ **undoSetColumnOrder**(`operation`: [SetColumnOrderUndoEntry](setcolumnorderundoentry.md)): *void*

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

**Parameters:**

Name | Type |
------ | ------ |
`operation` | [SetColumnOrderUndoEntry](setcolumnorderundoentry.md) |

**Returns:** *void*

___

### undoSetRowOrder

▸ **undoSetRowOrder**(`operation`: [SetRowOrderUndoEntry](setroworderundoentry.md)): *void*

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

**Parameters:**

Name | Type |
------ | ------ |
`operation` | [SetRowOrderUndoEntry](setroworderundoentry.md) |

**Returns:** *void*

___

### undoSetSheetContent

▸ **undoSetSheetContent**(`operation`: [SetSheetContentUndoEntry](setsheetcontentundoentry.md)): *void*

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

**Parameters:**

Name | Type |
------ | ------ |
`operation` | [SetSheetContentUndoEntry](setsheetcontentundoentry.md) |

**Returns:** *void*