TX Sheet Control

CellRange Interface

Interface

Normalized A1 endpoints and inclusive zero-based row/column bounds for a rectangular selection.

Package: @txtextcontrol/tx-sheet-control-server. Version: 2.0.0.

Related workbook object-model type, returned through the server control. Obtain it from its owning workbook or collection; it is not a required browser-package import.

Members

Properties

PropertyDescription
endThe end value of CellRange.
firstColumnThe firstColumn value of CellRange.
firstRowThe firstRow value of CellRange.
lastColumnThe lastColumn value of CellRange.
lastRowThe lastRow value of CellRange.
startThe start value of CellRange.

Examples

Pass the CellRange value obtained from its owning control, collection, callback or operation. The function reads that value without constructing a replacement document object.

import type { ServerSheetControl } from '@txtextcontrol/tx-sheet-control-server';

function inspectCellRangeStart(
    cellRange: Awaited<
        ReturnType<Awaited<ReturnType<ServerSheetControl['workbook']['sheets']['get']>>['cell']>
    >['bounds'],
) {
    const value = cellRange['start'];
    console.log('CellRange.start', value);
}

See Also