# CrudOperations

## Constructors

### constructor 

\+ **new CrudOperations**(`config`: [Config](config.md), `operations`: [Operations](operations.md), `undoRedo`: [UndoRedo](undoredo.md), `clipboardOperations`: [ClipboardOperations](clipboardoperations.md), `dependencyGraph`: DependencyGraph, `columnSearch`: [ColumnSearchStrategy](../interfaces/columnsearchstrategy.md), `parser`: ParserWithCaching, `cellContentParser`: [CellContentParser](cellcontentparser.md), `lazilyTransformingAstService`: [LazilyTransformingAstService](lazilytransformingastservice.md), `namedExpressions`: [NamedExpressions](namedexpressions.md)): *[CrudOperations](crudoperations.md)*

*Defined in [src/CrudOperations.ts:70](https://github.com/handsontable/hyperformula/blob/dcf9354/src/CrudOperations.ts#L70)*

**Parameters:**

Name | Type |
------ | ------ |
`config` | [Config](config.md) |
`operations` | [Operations](operations.md) |
`undoRedo` | [UndoRedo](undoredo.md) |
`clipboardOperations` | [ClipboardOperations](clipboardoperations.md) |
`dependencyGraph` | DependencyGraph |
`columnSearch` | [ColumnSearchStrategy](../interfaces/columnsearchstrategy.md) |
`parser` | ParserWithCaching |
`cellContentParser` | [CellContentParser](cellcontentparser.md) |
`lazilyTransformingAstService` | [LazilyTransformingAstService](lazilytransformingastservice.md) |
`namedExpressions` | [NamedExpressions](namedexpressions.md) |

**Returns:** *[CrudOperations](crudoperations.md)*

## Properties

### operations

• **operations**: *[Operations](operations.md)*

*Defined in [src/CrudOperations.ts:74](https://github.com/handsontable/hyperformula/blob/dcf9354/src/CrudOperations.ts#L74)*

___

### undoRedo

• **undoRedo**: *[UndoRedo](undoredo.md)*

*Defined in [src/CrudOperations.ts:75](https://github.com/handsontable/hyperformula/blob/dcf9354/src/CrudOperations.ts#L75)*

## Methods

### addColumns 

▸ **addColumns**(`sheet`: number, ...`indexes`: [ColumnRowIndex](../globals.md#columnrowindex)[]): *void*

*Defined in [src/CrudOperations.ts:110](https://github.com/handsontable/hyperformula/blob/dcf9354/src/CrudOperations.ts#L110)*

**Parameters:**

Name | Type |
------ | ------ |
`sheet` | number |
`...indexes` | [ColumnRowIndex](../globals.md#columnrowindex)[] |

**Returns:** *void*

___

### addNamedExpression 

▸ **addNamedExpression**(`expressionName`: string, `expression`: [RawCellContent](../globals.md#rawcellcontent), `sheetId?`: undefined | number, `options?`: [NamedExpressionOptions](../globals.md#namedexpressionoptions)): *void*

*Defined in [src/CrudOperations.ts:393](https://github.com/handsontable/hyperformula/blob/dcf9354/src/CrudOperations.ts#L393)*

**Parameters:**

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

**Returns:** *void*

___

### addRows 

▸ **addRows**(`sheet`: number, ...`indexes`: [ColumnRowIndex](../globals.md#columnrowindex)[]): *void*

*Defined in [src/CrudOperations.ts:92](https://github.com/handsontable/hyperformula/blob/dcf9354/src/CrudOperations.ts#L92)*

**Parameters:**

Name | Type |
------ | ------ |
`sheet` | number |
`...indexes` | [ColumnRowIndex](../globals.md#columnrowindex)[] |

**Returns:** *void*

___

### addSheet 

▸ **addSheet**(`name?`: undefined | string): *string*

*Defined in [src/CrudOperations.ts:215](https://github.com/handsontable/hyperformula/blob/dcf9354/src/CrudOperations.ts#L215)*

**Parameters:**

Name | Type |
------ | ------ |
`name?` | undefined &#124; string |

**Returns:** *string*

___

### beginUndoRedoBatchMode 

▸ **beginUndoRedoBatchMode**(): *void*

*Defined in [src/CrudOperations.ts:188](https://github.com/handsontable/hyperformula/blob/dcf9354/src/CrudOperations.ts#L188)*

**Returns:** *void*

___

### changeNamedExpressionExpression 

▸ **changeNamedExpressionExpression**(`expressionName`: string, `sheetId`: number | undefined, `newExpression`: [RawCellContent](../globals.md#rawcellcontent), `options?`: [NamedExpressionOptions](../globals.md#namedexpressionoptions)): *void*

*Defined in [src/CrudOperations.ts:401](https://github.com/handsontable/hyperformula/blob/dcf9354/src/CrudOperations.ts#L401)*

**Parameters:**

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

**Returns:** *void*

___

### clearClipboard 

▸ **clearClipboard**(): *void*

*Defined in [src/CrudOperations.ts:211](https://github.com/handsontable/hyperformula/blob/dcf9354/src/CrudOperations.ts#L211)*

**Returns:** *void*

___

### clearSheet 

▸ **clearSheet**(`sheetId`: number): *void*

*Defined in [src/CrudOperations.ts:251](https://github.com/handsontable/hyperformula/blob/dcf9354/src/CrudOperations.ts#L251)*

**Parameters:**

Name | Type |
------ | ------ |
`sheetId` | number |

**Returns:** *void*

___

### commitUndoRedoBatchMode 

▸ **commitUndoRedoBatchMode**(): *void*

*Defined in [src/CrudOperations.ts:192](https://github.com/handsontable/hyperformula/blob/dcf9354/src/CrudOperations.ts#L192)*

**Returns:** *void*

___

### copy 

▸ **copy**(`sourceLeftCorner`: [SimpleCellAddress](../interfaces/simplecelladdress.md), `width`: number, `height`: number): *void*

*Defined in [src/CrudOperations.ts:167](https://github.com/handsontable/hyperformula/blob/dcf9354/src/CrudOperations.ts#L167)*

**Parameters:**

Name | Type |
------ | ------ |
`sourceLeftCorner` | [SimpleCellAddress](../interfaces/simplecelladdress.md) |
`width` | number |
`height` | number |

**Returns:** *void*

___

### cut 

▸ **cut**(`sourceLeftCorner`: [SimpleCellAddress](../interfaces/simplecelladdress.md), `width`: number, `height`: number): *void*

*Defined in [src/CrudOperations.ts:154](https://github.com/handsontable/hyperformula/blob/dcf9354/src/CrudOperations.ts#L154)*

**Parameters:**

Name | Type |
------ | ------ |
`sourceLeftCorner` | [SimpleCellAddress](../interfaces/simplecelladdress.md) |
`width` | number |
`height` | number |

**Returns:** *void*

___

### ensureItIsPossibleToAddColumns 

▸ **ensureItIsPossibleToAddColumns**(`sheet`: number, ...`indexes`: [ColumnRowIndex](../globals.md#columnrowindex)[]): *void*

*Defined in [src/CrudOperations.ts:473](https://github.com/handsontable/hyperformula/blob/dcf9354/src/CrudOperations.ts#L473)*

**Parameters:**

Name | Type |
------ | ------ |
`sheet` | number |
`...indexes` | [ColumnRowIndex](../globals.md#columnrowindex)[] |

**Returns:** *void*

___

### ensureItIsPossibleToAddNamedExpression 

▸ **ensureItIsPossibleToAddNamedExpression**(`expressionName`: string, `expression`: [RawCellContent](../globals.md#rawcellcontent), `sheetId?`: undefined | number): *void*

*Defined in [src/CrudOperations.ts:419](https://github.com/handsontable/hyperformula/blob/dcf9354/src/CrudOperations.ts#L419)*

**Parameters:**

Name | Type |
------ | ------ |
`expressionName` | string |
`expression` | [RawCellContent](../globals.md#rawcellcontent) |
`sheetId?` | undefined &#124; number |

**Returns:** *void*

___

### ensureItIsPossibleToAddRows 

▸ **ensureItIsPossibleToAddRows**(`sheet`: number, ...`indexes`: [ColumnRowIndex](../globals.md#columnrowindex)[]): *void*

*Defined in [src/CrudOperations.ts:440](https://github.com/handsontable/hyperformula/blob/dcf9354/src/CrudOperations.ts#L440)*

**Parameters:**

Name | Type |
------ | ------ |
`sheet` | number |
`...indexes` | [ColumnRowIndex](../globals.md#columnrowindex)[] |

**Returns:** *void*

___

### ensureItIsPossibleToAddSheet 

▸ **ensureItIsPossibleToAddSheet**(`name`: string): *void*

*Defined in [src/CrudOperations.ts:561](https://github.com/handsontable/hyperformula/blob/dcf9354/src/CrudOperations.ts#L561)*

**Parameters:**

Name | Type |
------ | ------ |
`name` | string |

**Returns:** *void*

___

### ensureItIsPossibleToChangeCellContents 

▸ **ensureItIsPossibleToChangeCellContents**(`inputAddress`: [SimpleCellAddress](../interfaces/simplecelladdress.md), `content`: [RawCellContent](../globals.md#rawcellcontent)[][]): *void*

*Defined in [src/CrudOperations.ts:587](https://github.com/handsontable/hyperformula/blob/dcf9354/src/CrudOperations.ts#L587)*

**Parameters:**

Name | Type |
------ | ------ |
`inputAddress` | [SimpleCellAddress](../interfaces/simplecelladdress.md) |
`content` | [RawCellContent](../globals.md#rawcellcontent)[][] |

**Returns:** *void*

___

### ensureItIsPossibleToChangeContent 

▸ **ensureItIsPossibleToChangeContent**(`address`: [SimpleCellAddress](../interfaces/simplecelladdress.md)): *void*

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

**Parameters:**

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

**Returns:** *void*

___

### ensureItIsPossibleToChangeNamedExpression 

▸ **ensureItIsPossibleToChangeNamedExpression**(`expressionName`: string, `expression`: [RawCellContent](../globals.md#rawcellcontent), `sheetId?`: undefined | number): *void*

*Defined in [src/CrudOperations.ts:425](https://github.com/handsontable/hyperformula/blob/dcf9354/src/CrudOperations.ts#L425)*

**Parameters:**

Name | Type |
------ | ------ |
`expressionName` | string |
`expression` | [RawCellContent](../globals.md#rawcellcontent) |
`sheetId?` | undefined &#124; number |

**Returns:** *void*

___

### ensureItIsPossibleToChangeSheetContents 

▸ **ensureItIsPossibleToChangeSheetContents**(`sheetId`: number, `content`: [RawCellContent](../globals.md#rawcellcontent)[][]): *void*

*Defined in [src/CrudOperations.ts:596](https://github.com/handsontable/hyperformula/blob/dcf9354/src/CrudOperations.ts#L596)*

**Parameters:**

Name | Type |
------ | ------ |
`sheetId` | number |
`content` | [RawCellContent](../globals.md#rawcellcontent)[][] |

**Returns:** *void*

___

### ensureItIsPossibleToCopy 

▸ **ensureItIsPossibleToCopy**(`sourceLeftCorner`: [SimpleCellAddress](../interfaces/simplecelladdress.md), `width`: number, `height`: number): *void*

*Defined in [src/CrudOperations.ts:158](https://github.com/handsontable/hyperformula/blob/dcf9354/src/CrudOperations.ts#L158)*

**Parameters:**

Name | Type |
------ | ------ |
`sourceLeftCorner` | [SimpleCellAddress](../interfaces/simplecelladdress.md) |
`width` | number |
`height` | number |

**Returns:** *void*

___

### ensureItIsPossibleToMoveColumns 

▸ **ensureItIsPossibleToMoveColumns**(`sheet`: number, `startColumn`: number, `numberOfColumns`: number, `targetColumn`: number): *void*

*Defined in [src/CrudOperations.ts:534](https://github.com/handsontable/hyperformula/blob/dcf9354/src/CrudOperations.ts#L534)*

**Parameters:**

Name | Type |
------ | ------ |
`sheet` | number |
`startColumn` | number |
`numberOfColumns` | number |
`targetColumn` | number |

**Returns:** *void*

___

### ensureItIsPossibleToMoveRows 

▸ **ensureItIsPossibleToMoveRows**(`sheet`: number, `startRow`: number, `numberOfRows`: number, `targetRow`: number): *void*

*Defined in [src/CrudOperations.ts:507](https://github.com/handsontable/hyperformula/blob/dcf9354/src/CrudOperations.ts#L507)*

**Parameters:**

Name | Type |
------ | ------ |
`sheet` | number |
`startRow` | number |
`numberOfRows` | number |
`targetRow` | number |

**Returns:** *void*

___

### ensureItIsPossibleToRemoveColumns 

▸ **ensureItIsPossibleToRemoveColumns**(`sheet`: number, ...`indexes`: [ColumnRowIndex](../globals.md#columnrowindex)[]): *void*

*Defined in [src/CrudOperations.ts:491](https://github.com/handsontable/hyperformula/blob/dcf9354/src/CrudOperations.ts#L491)*

**Parameters:**

Name | Type |
------ | ------ |
`sheet` | number |
`...indexes` | [ColumnRowIndex](../globals.md#columnrowindex)[] |

**Returns:** *void*

___

### ensureItIsPossibleToRemoveRows 

▸ **ensureItIsPossibleToRemoveRows**(`sheet`: number, ...`indexes`: [ColumnRowIndex](../globals.md#columnrowindex)[]): *void*

*Defined in [src/CrudOperations.ts:458](https://github.com/handsontable/hyperformula/blob/dcf9354/src/CrudOperations.ts#L458)*

**Parameters:**

Name | Type |
------ | ------ |
`sheet` | number |
`...indexes` | [ColumnRowIndex](../globals.md#columnrowindex)[] |

**Returns:** *void*

___

### ensureItIsPossibleToRenameSheet 

▸ **ensureItIsPossibleToRenameSheet**(`sheetId`: number, `name`: string): *void*

*Defined in [src/CrudOperations.ts:567](https://github.com/handsontable/hyperformula/blob/dcf9354/src/CrudOperations.ts#L567)*

**Parameters:**

Name | Type |
------ | ------ |
`sheetId` | number |
`name` | string |

**Returns:** *void*

___

### ensureRangeInSizeLimits 

▸ **ensureRangeInSizeLimits**(`range`: [AbsoluteCellRange](absolutecellrange.md)): *void*

*Defined in [src/CrudOperations.ts:602](https://github.com/handsontable/hyperformula/blob/dcf9354/src/CrudOperations.ts#L602)*

**Parameters:**

Name | Type |
------ | ------ |
`range` | [AbsoluteCellRange](absolutecellrange.md) |

**Returns:** *void*

___

### ensureScopeIdIsValid 

▸ **ensureScopeIdIsValid**(`scopeId?`: undefined | number): *void*

*Defined in [src/CrudOperations.ts:620](https://github.com/handsontable/hyperformula/blob/dcf9354/src/CrudOperations.ts#L620)*

**Parameters:**

Name | Type |
------ | ------ |
`scopeId?` | undefined &#124; number |

**Returns:** *void*

___

### getAndClearContentChanges 

▸ **getAndClearContentChanges**(): *[ContentChanges](contentchanges.md)*

*Defined in [src/CrudOperations.ts:616](https://github.com/handsontable/hyperformula/blob/dcf9354/src/CrudOperations.ts#L616)*

**Returns:** *[ContentChanges](contentchanges.md)*

___

### isClipboardEmpty 

▸ **isClipboardEmpty**(): *boolean*

*Defined in [src/CrudOperations.ts:196](https://github.com/handsontable/hyperformula/blob/dcf9354/src/CrudOperations.ts#L196)*

**Returns:** *boolean*

___

### isCutClipboard 

▸ **isCutClipboard**(): *boolean*

*Defined in [src/CrudOperations.ts:207](https://github.com/handsontable/hyperformula/blob/dcf9354/src/CrudOperations.ts#L207)*

Returns whether the clipboard currently holds a cut (as opposed to a copy, or nothing) -
i.e. whether the next [paste](crudoperations.md#paste) call will move cells rather than only copy their content.
Exposed so the public API layer can gate a cut-then-paste as the cell-relocating mutation it
actually is (HF-307 PR 2: [paste](crudoperations.md#paste) must require the Crud feature in this case, not just
Clipboard, since it performs the same move [HyperFormula.moveCells](hyperformula.md#movecells) requires Crud for).

**Returns:** *boolean*

___

### isItPossibleToRemoveNamedExpression 

▸ **isItPossibleToRemoveNamedExpression**(`expressionName`: string, `sheetId?`: undefined | number): *void*

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

**Parameters:**

Name | Type |
------ | ------ |
`expressionName` | string |
`sheetId?` | undefined &#124; number |

**Returns:** *void*

___

### isThereSomethingToRedo 

▸ **isThereSomethingToRedo**(): *boolean*

*Defined in [src/CrudOperations.ts:612](https://github.com/handsontable/hyperformula/blob/dcf9354/src/CrudOperations.ts#L612)*

**Returns:** *boolean*

___

### isThereSomethingToUndo 

▸ **isThereSomethingToUndo**(): *boolean*

*Defined in [src/CrudOperations.ts:608](https://github.com/handsontable/hyperformula/blob/dcf9354/src/CrudOperations.ts#L608)*

**Returns:** *boolean*

___

### mappingFromOrder 

▸ **mappingFromOrder**(`sheetId`: number, `newOrder`: number[], `rowOrColumn`: "row" | "column"): *[number, number][]*

*Defined in [src/CrudOperations.ts:360](https://github.com/handsontable/hyperformula/blob/dcf9354/src/CrudOperations.ts#L360)*

**Parameters:**

Name | Type |
------ | ------ |
`sheetId` | number |
`newOrder` | number[] |
`rowOrColumn` | "row" &#124; "column" |

**Returns:** *[number, number][]*

___

### moveCells 

▸ **moveCells**(`sourceLeftCorner`: [SimpleCellAddress](../interfaces/simplecelladdress.md), `width`: number, `height`: number, `destinationLeftCorner`: [SimpleCellAddress](../interfaces/simplecelladdress.md)): *void*

*Defined in [src/CrudOperations.ts:128](https://github.com/handsontable/hyperformula/blob/dcf9354/src/CrudOperations.ts#L128)*

**Parameters:**

Name | Type |
------ | ------ |
`sourceLeftCorner` | [SimpleCellAddress](../interfaces/simplecelladdress.md) |
`width` | number |
`height` | number |
`destinationLeftCorner` | [SimpleCellAddress](../interfaces/simplecelladdress.md) |

**Returns:** *void*

___

### moveColumns 

▸ **moveColumns**(`sheet`: number, `startColumn`: number, `numberOfColumns`: number, `targetColumn`: number): *void*

*Defined in [src/CrudOperations.ts:147](https://github.com/handsontable/hyperformula/blob/dcf9354/src/CrudOperations.ts#L147)*

**Parameters:**

Name | Type |
------ | ------ |
`sheet` | number |
`startColumn` | number |
`numberOfColumns` | number |
`targetColumn` | number |

**Returns:** *void*

___

### moveRows 

▸ **moveRows**(`sheet`: number, `startRow`: number, `numberOfRows`: number, `targetRow`: number): *void*

*Defined in [src/CrudOperations.ts:139](https://github.com/handsontable/hyperformula/blob/dcf9354/src/CrudOperations.ts#L139)*

**Parameters:**

Name | Type |
------ | ------ |
`sheet` | number |
`startRow` | number |
`numberOfRows` | number |
`targetRow` | number |

**Returns:** *void*

___

### paste 

▸ **paste**(`targetLeftCorner`: [SimpleCellAddress](../interfaces/simplecelladdress.md)): *void*

*Defined in [src/CrudOperations.ts:172](https://github.com/handsontable/hyperformula/blob/dcf9354/src/CrudOperations.ts#L172)*

**Parameters:**

Name | Type |
------ | ------ |
`targetLeftCorner` | [SimpleCellAddress](../interfaces/simplecelladdress.md) |

**Returns:** *void*

___

### redo 

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

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

**Returns:** *void*

___

### removeColumns 

▸ **removeColumns**(`sheet`: number, ...`indexes`: [ColumnRowIndex](../globals.md#columnrowindex)[]): *void*

*Defined in [src/CrudOperations.ts:119](https://github.com/handsontable/hyperformula/blob/dcf9354/src/CrudOperations.ts#L119)*

**Parameters:**

Name | Type |
------ | ------ |
`sheet` | number |
`...indexes` | [ColumnRowIndex](../globals.md#columnrowindex)[] |

**Returns:** *void*

___

### removeNamedExpression 

▸ **removeNamedExpression**(`expressionName`: string, `sheetId?`: undefined | number): *[InternalNamedExpression](internalnamedexpression.md)*

*Defined in [src/CrudOperations.ts:409](https://github.com/handsontable/hyperformula/blob/dcf9354/src/CrudOperations.ts#L409)*

**Parameters:**

Name | Type |
------ | ------ |
`expressionName` | string |
`sheetId?` | undefined &#124; number |

**Returns:** *[InternalNamedExpression](internalnamedexpression.md)*

___

### removeRows 

▸ **removeRows**(`sheet`: number, ...`indexes`: [ColumnRowIndex](../globals.md#columnrowindex)[]): *void*

*Defined in [src/CrudOperations.ts:101](https://github.com/handsontable/hyperformula/blob/dcf9354/src/CrudOperations.ts#L101)*

**Parameters:**

Name | Type |
------ | ------ |
`sheet` | number |
`...indexes` | [ColumnRowIndex](../globals.md#columnrowindex)[] |

**Returns:** *void*

___

### removeSheet 

▸ **removeSheet**(`sheetId`: number): *void*

*Defined in [src/CrudOperations.ts:225](https://github.com/handsontable/hyperformula/blob/dcf9354/src/CrudOperations.ts#L225)*

**Parameters:**

Name | Type |
------ | ------ |
`sheetId` | number |

**Returns:** *void*

___

### renameSheet 

▸ **renameSheet**(`sheetId`: number, `newName`: string): *[Maybe](../globals.md#maybe)‹string›*

*Defined in [src/CrudOperations.ts:235](https://github.com/handsontable/hyperformula/blob/dcf9354/src/CrudOperations.ts#L235)*

**Parameters:**

Name | Type |
------ | ------ |
`sheetId` | number |
`newName` | string |

**Returns:** *[Maybe](../globals.md#maybe)‹string›*

___

### setCellContents 

▸ **setCellContents**(`topLeftCornerAddress`: [SimpleCellAddress](../interfaces/simplecelladdress.md), `cellContents`: [RawCellContent](../globals.md#rawcellcontent)[][] | [RawCellContent](../globals.md#rawcellcontent)): *void*

*Defined in [src/CrudOperations.ts:260](https://github.com/handsontable/hyperformula/blob/dcf9354/src/CrudOperations.ts#L260)*

**Parameters:**

Name | Type |
------ | ------ |
`topLeftCornerAddress` | [SimpleCellAddress](../interfaces/simplecelladdress.md) |
`cellContents` | [RawCellContent](../globals.md#rawcellcontent)[][] &#124; [RawCellContent](../globals.md#rawcellcontent) |

**Returns:** *void*

___

### setColumnOrder 

▸ **setColumnOrder**(`sheetId`: number, `columnMapping`: [number, number][]): *void*

*Defined in [src/CrudOperations.ts:333](https://github.com/handsontable/hyperformula/blob/dcf9354/src/CrudOperations.ts#L333)*

**Parameters:**

Name | Type |
------ | ------ |
`sheetId` | number |
`columnMapping` | [number, number][] |

**Returns:** *void*

___

### setRowOrder 

▸ **setRowOrder**(`sheetId`: number, `rowMapping`: [number, number][]): *void*

*Defined in [src/CrudOperations.ts:306](https://github.com/handsontable/hyperformula/blob/dcf9354/src/CrudOperations.ts#L306)*

**Parameters:**

Name | Type |
------ | ------ |
`sheetId` | number |
`rowMapping` | [number, number][] |

**Returns:** *void*

___

### setSheetContent 

▸ **setSheetContent**(`sheetId`: number, `values`: [RawCellContent](../globals.md#rawcellcontent)[][]): *void*

*Defined in [src/CrudOperations.ts:294](https://github.com/handsontable/hyperformula/blob/dcf9354/src/CrudOperations.ts#L294)*

**Parameters:**

Name | Type |
------ | ------ |
`sheetId` | number |
`values` | [RawCellContent](../globals.md#rawcellcontent)[][] |

**Returns:** *void*

___

### testColumnOrderForArrays 

▸ **testColumnOrderForArrays**(`sheetId`: number, `columnMapping`: [number, number][]): *void*

*Defined in [src/CrudOperations.ts:322](https://github.com/handsontable/hyperformula/blob/dcf9354/src/CrudOperations.ts#L322)*

**Parameters:**

Name | Type |
------ | ------ |
`sheetId` | number |
`columnMapping` | [number, number][] |

**Returns:** *void*

___

### testRowOrderForArrays 

▸ **testRowOrderForArrays**(`sheetId`: number, `rowMapping`: [number, number][]): *void*

*Defined in [src/CrudOperations.ts:349](https://github.com/handsontable/hyperformula/blob/dcf9354/src/CrudOperations.ts#L349)*

**Parameters:**

Name | Type |
------ | ------ |
`sheetId` | number |
`rowMapping` | [number, number][] |

**Returns:** *void*

___

### undo 

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

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

**Returns:** *void*

___

### validateSwapColumnIndexes 

▸ **validateSwapColumnIndexes**(`sheetId`: number, `columnMapping`: [number, number][]): *void*

*Defined in [src/CrudOperations.ts:342](https://github.com/handsontable/hyperformula/blob/dcf9354/src/CrudOperations.ts#L342)*

**Parameters:**

Name | Type |
------ | ------ |
`sheetId` | number |
`columnMapping` | [number, number][] |

**Returns:** *void*

___

### validateSwapRowIndexes 

▸ **validateSwapRowIndexes**(`sheetId`: number, `rowMapping`: [number, number][]): *void*

*Defined in [src/CrudOperations.ts:315](https://github.com/handsontable/hyperformula/blob/dcf9354/src/CrudOperations.ts#L315)*

**Parameters:**

Name | Type |
------ | ------ |
`sheetId` | number |
`rowMapping` | [number, number][] |

**Returns:** *void*