# Operations

## Constructors

### constructor

\+ **new Operations**(`config`: [Config](config.md), `dependencyGraph`: DependencyGraph, `columnSearch`: [ColumnSearchStrategy](../interfaces/columnsearchstrategy.md), `cellContentParser`: [CellContentParser](cellcontentparser.md), `parser`: ParserWithCaching, `stats`: [Statistics](statistics.md), `lazilyTransformingAstService`: [LazilyTransformingAstService](lazilytransformingastservice.md), `namedExpressions`: [NamedExpressions](namedexpressions.md), `arraySizePredictor`: [ArraySizePredictor](arraysizepredictor.md)): *[Operations](operations.md)*

*Defined in [hyperformula/src/Operations.ts:166](https://github.com/handsontable/hyperformula/blob/927d211/hyperformula/src/Operations.ts#L166)*

**Parameters:**

Name | Type |
------ | ------ |
`config` | [Config](config.md) |
`dependencyGraph` | DependencyGraph |
`columnSearch` | [ColumnSearchStrategy](../interfaces/columnsearchstrategy.md) |
`cellContentParser` | [CellContentParser](cellcontentparser.md) |
`parser` | ParserWithCaching |
`stats` | [Statistics](statistics.md) |
`lazilyTransformingAstService` | [LazilyTransformingAstService](lazilytransformingastservice.md) |
`namedExpressions` | [NamedExpressions](namedexpressions.md) |
`arraySizePredictor` | [ArraySizePredictor](arraysizepredictor.md) |

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

## Methods

### addColumns

▸ **addColumns**(`cmd`: [AddColumnsCommand](addcolumnscommand.md)): *[[SimpleCellAddress](../interfaces/simplecelladdress.md), [ClipboardCell](../globals.md#clipboardcell)][][]*

*Defined in [hyperformula/src/Operations.ts:219](https://github.com/handsontable/hyperformula/blob/927d211/hyperformula/src/Operations.ts#L219)*

Adds the columns of every span of the command.

Returns, per span, the cells that arrays grown by that span overwrote, in the coordinates from before that span.
Arrays overwrite cells only when called inside `recordOverwrites`.

**Parameters:**

Name | Type |
------ | ------ |
`cmd` | [AddColumnsCommand](addcolumnscommand.md) |

**Returns:** *[[SimpleCellAddress](../interfaces/simplecelladdress.md), [ClipboardCell](../globals.md#clipboardcell)][][]*

___

### addNamedExpression

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

*Defined in [hyperformula/src/Operations.ts:450](https://github.com/handsontable/hyperformula/blob/927d211/hyperformula/src/Operations.ts#L450)*

**Parameters:**

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

**Returns:** *void*

___

### addPlaceholderSheetWithId

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

*Defined in [hyperformula/src/Operations.ts:267](https://github.com/handsontable/hyperformula/blob/927d211/hyperformula/src/Operations.ts#L267)*

Adds a placeholder sheet with a specific ID for undo operations.
Used to restore previously merged placeholder sheets.

Note: Unlike `addSheetWithId`, this does NOT call `dependencyGraph.addSheet()`
because placeholders don't need dirty marking or strategy changes - they only
need to exist in the mappings so formulas can reference them again.

**Parameters:**

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

**Returns:** *void*

___

### addRows

▸ **addRows**(`cmd`: [AddRowsCommand](addrowscommand.md)): *[[SimpleCellAddress](../interfaces/simplecelladdress.md), [ClipboardCell](../globals.md#clipboardcell)][][]*

*Defined in [hyperformula/src/Operations.ts:209](https://github.com/handsontable/hyperformula/blob/927d211/hyperformula/src/Operations.ts#L209)*

Adds the rows of every span of the command.

Returns, per span, the cells that arrays grown by that span overwrote, in the coordinates from before that span.
Arrays overwrite cells only when called inside `recordOverwrites`.

**Parameters:**

Name | Type |
------ | ------ |
`cmd` | [AddRowsCommand](addrowscommand.md) |

**Returns:** *[[SimpleCellAddress](../interfaces/simplecelladdress.md), [ClipboardCell](../globals.md#clipboardcell)][][]*

___

### addSheet

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

*Defined in [hyperformula/src/Operations.ts:245](https://github.com/handsontable/hyperformula/blob/927d211/hyperformula/src/Operations.ts#L245)*

Adds a new sheet to the workbook.

**Parameters:**

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

**Returns:** *object*

* **sheetId**: *number*

* **sheetName**: *string*

___

### addSheetWithId

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

*Defined in [hyperformula/src/Operations.ts:254](https://github.com/handsontable/hyperformula/blob/927d211/hyperformula/src/Operations.ts#L254)*

Adds a sheet with a specific ID for redo operations.

**Parameters:**

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

**Returns:** *void*

___

### changeNamedExpressionExpression

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

*Defined in [hyperformula/src/Operations.ts:463](https://github.com/handsontable/hyperformula/blob/927d211/hyperformula/src/Operations.ts#L463)*

**Parameters:**

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

**Returns:** *[[InternalNamedExpression](internalnamedexpression.md), [ClipboardCell](../globals.md#clipboardcell)]*

___

### clearSheet

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

*Defined in [hyperformula/src/Operations.ts:237](https://github.com/handsontable/hyperformula/blob/927d211/hyperformula/src/Operations.ts#L237)*

Clears the sheet content.

**Parameters:**

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

**Returns:** *void*

___

### ensureItIsPossibleToMoveCells

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

*Defined in [hyperformula/src/Operations.ts:496](https://github.com/handsontable/hyperformula/blob/927d211/hyperformula/src/Operations.ts#L496)*

**Parameters:**

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

**Returns:** *void*

___

### forceApplyPostponedTransformations

▸ **forceApplyPostponedTransformations**(): *void*

*Defined in [hyperformula/src/Operations.ts:786](https://github.com/handsontable/hyperformula/blob/927d211/hyperformula/src/Operations.ts#L786)*

Forces all formula vertices and column index entries to apply pending lazy
transformations, bringing them up to the current LazilyTransformingAstService version.
Called before undo of move operations and before compaction.

**Returns:** *void*

___

### getAndClearContentChanges

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

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

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

___

### getClipboardCell

▸ **getClipboardCell**(`address`: [SimpleCellAddress](../interfaces/simplecelladdress.md)): *[ClipboardCell](../globals.md#clipboardcell)*

*Defined in [hyperformula/src/Operations.ts:584](https://github.com/handsontable/hyperformula/blob/927d211/hyperformula/src/Operations.ts#L584)*

**Parameters:**

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

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

___

### getOldContent

▸ **getOldContent**(`address`: [SimpleCellAddress](../interfaces/simplecelladdress.md)): *[[SimpleCellAddress](../interfaces/simplecelladdress.md), [ClipboardCell](../globals.md#clipboardcell)]*

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

**Parameters:**

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

**Returns:** *[[SimpleCellAddress](../interfaces/simplecelladdress.md), [ClipboardCell](../globals.md#clipboardcell)]*

___

### getRangeClipboardCells

▸ **getRangeClipboardCells**(`range`: [AbsoluteCellRange](absolutecellrange.md)): *[[SimpleCellAddress](../interfaces/simplecelladdress.md), [ClipboardCell](../globals.md#clipboardcell)][]*

*Defined in [hyperformula/src/Operations.ts:625](https://github.com/handsontable/hyperformula/blob/927d211/hyperformula/src/Operations.ts#L625)*

**Parameters:**

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

**Returns:** *[[SimpleCellAddress](../interfaces/simplecelladdress.md), [ClipboardCell](../globals.md#clipboardcell)][]*

___

### getSheetClipboardCells

▸ **getSheetClipboardCells**(`sheet`: number): *[ClipboardCell](../globals.md#clipboardcell)[][]*

*Defined in [hyperformula/src/Operations.ts:609](https://github.com/handsontable/hyperformula/blob/927d211/hyperformula/src/Operations.ts#L609)*

**Parameters:**

Name | Type |
------ | ------ |
`sheet` | number |

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

___

### moveCells

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

*Defined in [hyperformula/src/Operations.ts:373](https://github.com/handsontable/hyperformula/blob/927d211/hyperformula/src/Operations.ts#L373)*

**Parameters:**

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

**Returns:** *[MoveCellsResult](../interfaces/movecellsresult.md)*

___

### moveColumns

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

*Defined in [hyperformula/src/Operations.ts:354](https://github.com/handsontable/hyperformula/blob/927d211/hyperformula/src/Operations.ts#L354)*

**Parameters:**

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

**Returns:** *number*

___

### moveRows

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

*Defined in [hyperformula/src/Operations.ts:335](https://github.com/handsontable/hyperformula/blob/927d211/hyperformula/src/Operations.ts#L335)*

**Parameters:**

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

**Returns:** *number*

___

### recordOverwrites

▸ **recordOverwrites**‹**T**›(`operation`: function): *[RecordOverwritesResult](../interfaces/recordoverwritesresult.md)‹T›*

*Defined in [hyperformula/src/Operations.ts:326](https://github.com/handsontable/hyperformula/blob/927d211/hyperformula/src/Operations.ts#L326)*

Runs `operation` with `arrayFunctionResultOverwritesData` in effect and returns, with its result, every cell
that an array spill overwrote, with the content the cell held just before.

Outside of this method an array never overwrites data, whatever the option says, so only the operations that
save these cells for undo (entering content, pasting, adding rows or columns, and their redo) call it.

**Type parameters:**

▪ **T**

**Parameters:**

▪ **operation**: *function*

▸ (): *T*

**Returns:** *[RecordOverwritesResult](../interfaces/recordoverwritesresult.md)‹T›*

___

### removeColumns

▸ **removeColumns**(`cmd`: [RemoveColumnsCommand](removecolumnscommand.md)): *[ColumnsRemoval](../interfaces/columnsremoval.md)[]*

*Defined in [hyperformula/src/Operations.ts:223](https://github.com/handsontable/hyperformula/blob/927d211/hyperformula/src/Operations.ts#L223)*

**Parameters:**

Name | Type |
------ | ------ |
`cmd` | [RemoveColumnsCommand](removecolumnscommand.md) |

**Returns:** *[ColumnsRemoval](../interfaces/columnsremoval.md)[]*

___

### removeNamedExpression

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

*Defined in [hyperformula/src/Operations.ts:477](https://github.com/handsontable/hyperformula/blob/927d211/hyperformula/src/Operations.ts#L477)*

**Parameters:**

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

**Returns:** *[[InternalNamedExpression](internalnamedexpression.md), [ClipboardCell](../globals.md#clipboardcell)]*

___

### removeRows

▸ **removeRows**(`cmd`: [RemoveRowsCommand](removerowscommand.md)): *[RowsRemoval](../interfaces/rowsremoval.md)[]*

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

**Parameters:**

Name | Type |
------ | ------ |
`cmd` | [RemoveRowsCommand](removerowscommand.md) |

**Returns:** *[RowsRemoval](../interfaces/rowsremoval.md)[]*

___

### removeSheet

▸ **removeSheet**(`sheetId`: number): *[[InternalNamedExpression](internalnamedexpression.md), [ClipboardCell](../globals.md#clipboardcell)][]*

*Defined in [hyperformula/src/Operations.ts:275](https://github.com/handsontable/hyperformula/blob/927d211/hyperformula/src/Operations.ts#L275)*

Removes a sheet from the workbook.

**Parameters:**

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

**Returns:** *[[InternalNamedExpression](internalnamedexpression.md), [ClipboardCell](../globals.md#clipboardcell)][]*

___

### removeSheetByName

▸ **removeSheetByName**(`sheetName`: string): *[[InternalNamedExpression](internalnamedexpression.md)‹›, [ClipboardCell](../globals.md#clipboardcell)][]*

*Defined in [hyperformula/src/Operations.ts:287](https://github.com/handsontable/hyperformula/blob/927d211/hyperformula/src/Operations.ts#L287)*

Removes a sheet from the workbook by name.

**Parameters:**

Name | Type |
------ | ------ |
`sheetName` | string |

**Returns:** *[[InternalNamedExpression](internalnamedexpression.md)‹›, [ClipboardCell](../globals.md#clipboardcell)][]*

___

### renameSheet

▸ **renameSheet**(`sheetId`: number, `newName`: string): *object*

*Defined in [hyperformula/src/Operations.ts:295](https://github.com/handsontable/hyperformula/blob/927d211/hyperformula/src/Operations.ts#L295)*

Renames a sheet in the workbook.

**Parameters:**

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

**Returns:** *object*

* **mergedPlaceholderSheetId**? : *undefined | number*

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

* **version**? : *undefined | number*

___

### restoreCell

▸ **restoreCell**(`address`: [SimpleCellAddress](../interfaces/simplecelladdress.md), `clipboardCell`: [ClipboardCell](../globals.md#clipboardcell)): *void*

*Defined in [hyperformula/src/Operations.ts:539](https://github.com/handsontable/hyperformula/blob/927d211/hyperformula/src/Operations.ts#L539)*

Restores a single cell.

**Parameters:**

Name | Type |
------ | ------ |
`address` | [SimpleCellAddress](../interfaces/simplecelladdress.md) |
`clipboardCell` | [ClipboardCell](../globals.md#clipboardcell) |

**Returns:** *void*

___

### restoreClipboardCells

▸ **restoreClipboardCells**(`sourceSheetId`: number, `cells`: IterableIterator‹[[SimpleCellAddress](../interfaces/simplecelladdress.md), [ClipboardCell](../globals.md#clipboardcell)]›): *string[]*

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

**Parameters:**

Name | Type |
------ | ------ |
`sourceSheetId` | number |
`cells` | IterableIterator‹[[SimpleCellAddress](../interfaces/simplecelladdress.md), [ClipboardCell](../globals.md#clipboardcell)]› |

**Returns:** *string[]*

___

### restoreNamedExpression

▸ **restoreNamedExpression**(`namedExpression`: [InternalNamedExpression](internalnamedexpression.md), `content`: [ClipboardCell](../globals.md#clipboardcell), `sheetId?`: undefined | number): *void*

*Defined in [hyperformula/src/Operations.ts:456](https://github.com/handsontable/hyperformula/blob/927d211/hyperformula/src/Operations.ts#L456)*

**Parameters:**

Name | Type |
------ | ------ |
`namedExpression` | [InternalNamedExpression](internalnamedexpression.md) |
`content` | [ClipboardCell](../globals.md#clipboardcell) |
`sheetId?` | undefined &#124; number |

**Returns:** *void*

___

### rowEffectivelyNotInSheet

▸ **rowEffectivelyNotInSheet**(`row`: number, `sheet`: number): *boolean*

*Defined in [hyperformula/src/Operations.ts:770](https://github.com/handsontable/hyperformula/blob/927d211/hyperformula/src/Operations.ts#L770)*

Returns true if row number is outside of given sheet.

**Parameters:**

Name | Type | Description |
------ | ------ | ------ |
`row` | number | row number |
`sheet` | number | sheet ID number  |

**Returns:** *boolean*

___

### setCellContent

▸ **setCellContent**(`address`: [SimpleCellAddress](../interfaces/simplecelladdress.md), `newCellContent`: [RawCellContent](../globals.md#rawcellcontent)): *[[SimpleCellAddress](../interfaces/simplecelladdress.md), [ClipboardCell](../globals.md#clipboardcell)]*

*Defined in [hyperformula/src/Operations.ts:633](https://github.com/handsontable/hyperformula/blob/927d211/hyperformula/src/Operations.ts#L633)*

**Parameters:**

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

**Returns:** *[[SimpleCellAddress](../interfaces/simplecelladdress.md), [ClipboardCell](../globals.md#clipboardcell)]*

___

### setCellEmpty

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

*Defined in [hyperformula/src/Operations.ts:735](https://github.com/handsontable/hyperformula/blob/927d211/hyperformula/src/Operations.ts#L735)*

Sets cell content to an empty value.
Creates an EmptyCellVertex and updates the dependency graph and column search index.

**Parameters:**

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

**Returns:** *void*

___

### setColumnOrder

▸ **setColumnOrder**(`sheetId`: number, `columnMapping`: [number, number][]): *[[SimpleCellAddress](../interfaces/simplecelladdress.md), [ClipboardCell](../globals.md#clipboardcell)][]*

*Defined in [hyperformula/src/Operations.ts:429](https://github.com/handsontable/hyperformula/blob/927d211/hyperformula/src/Operations.ts#L429)*

**Parameters:**

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

**Returns:** *[[SimpleCellAddress](../interfaces/simplecelladdress.md), [ClipboardCell](../globals.md#clipboardcell)][]*

___

### setFormulaToCell

▸ **setFormulaToCell**(`address`: [SimpleCellAddress](../interfaces/simplecelladdress.md), `size`: [ArraySize](arraysize.md), `__namedParameters`: object): *void*

*Defined in [hyperformula/src/Operations.ts:698](https://github.com/handsontable/hyperformula/blob/927d211/hyperformula/src/Operations.ts#L698)*

Sets cell content to a formula.
Creates a ScalarFormulaVertex and updates the dependency graph and column search index.

**Parameters:**

▪ **address**: *[SimpleCellAddress](../interfaces/simplecelladdress.md)*

▪ **size**: *[ArraySize](arraysize.md)*

▪ **__namedParameters**: *object*

Name | Type |
------ | ------ |
`ast` | Ast |
`dependencies` | RelativeDependency[] |
`hasStructuralChangeFunction` | boolean |
`hasVolatileFunction` | boolean |

**Returns:** *void*

___

### setFormulaToCellFromAst

▸ **setFormulaToCellFromAst**(`formula`: Ast, `address`: [SimpleCellAddress](../interfaces/simplecelladdress.md)): *[ContentChanges](contentchanges.md)*

*Defined in [hyperformula/src/Operations.ts:750](https://github.com/handsontable/hyperformula/blob/927d211/hyperformula/src/Operations.ts#L750)*

Restores a retained formula without depending on its parsing cache entry.

**Parameters:**

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

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

___

### setParsingErrorToCell

▸ **setParsingErrorToCell**(`rawInput`: string, `errors`: ParsingError[], `address`: [SimpleCellAddress](../interfaces/simplecelladdress.md)): *void*

*Defined in [hyperformula/src/Operations.ts:683](https://github.com/handsontable/hyperformula/blob/927d211/hyperformula/src/Operations.ts#L683)*

Sets cell content to an instance of parsing error.
Creates a ParsingErrorVertex and updates the dependency graph and column search index.

**Parameters:**

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

**Returns:** *void*

___

### setRowOrder

▸ **setRowOrder**(`sheetId`: number, `rowMapping`: [number, number][]): *[[SimpleCellAddress](../interfaces/simplecelladdress.md), [ClipboardCell](../globals.md#clipboardcell)][]*

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

**Parameters:**

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

**Returns:** *[[SimpleCellAddress](../interfaces/simplecelladdress.md), [ClipboardCell](../globals.md#clipboardcell)][]*

___

### setSheetContent

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

*Defined in [hyperformula/src/Operations.ts:669](https://github.com/handsontable/hyperformula/blob/927d211/hyperformula/src/Operations.ts#L669)*

**Parameters:**

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

**Returns:** *void*

___

### setValueToCell

▸ **setValueToCell**(`value`: RawAndParsedValue, `address`: [SimpleCellAddress](../interfaces/simplecelladdress.md)): *void*

*Defined in [hyperformula/src/Operations.ts:721](https://github.com/handsontable/hyperformula/blob/927d211/hyperformula/src/Operations.ts#L721)*

Sets cell content to a value.
Creates a ValueCellVertex and updates the dependency graph and column search index.

**Parameters:**

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

**Returns:** *void*