Skip to content
Sheetwrite

@sheetwrite/formulas

setColumnBlockCellsfunction

Report a problem

On this page

Write every cell of one rectangle, column by column, with CellStore.setColumnBlockPacked, with one text per cell. Cell (row, col) is entry col * rows + row, so columnar data fills the arrays in place.

Declaration

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

Parameters

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

The store to write to.

sheet: numberrequired

The sheet's handle, from addSheet.

cells: CellBlockrequired

The rectangle and its cells, column by column.

Returns

number

The status of setColumnBlockPacked, as for setSparseCells.

See also