Skip to content
Sheetwrite

@sheetwrite/wasm

setBlockCellsfunction

Report a problem

On this page

Write every cell of one rectangle, row by row, with CellStore.setBlockPacked, with one text per cell. This function packs the text into the UTF-8 buffer and offsets that the store method takes.

Declaration

function setBlockCells(
store: Pick<WasmExports.CellStore, "setBlockPacked">,
sheet: number,
cells: CellBlock,
): number

Parameters

store: Pick<WasmExports.CellStore, "setBlockPacked">required

The store to write to.

sheet: numberrequired

The sheet's handle, from addSheet.

cells: CellBlockrequired

The rectangle and its cells, row by row.

Returns

number

The status of setBlockPacked, as for setSparseCells.

See also