CellRange 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
| Property | Description |
|---|---|
| end | The end value of CellRange. |
| firstColumn | The firstColumn value of CellRange. |
| firstRow | The firstRow value of CellRange. |
| lastColumn | The lastColumn value of CellRange. |
| lastRow | The lastRow value of CellRange. |
| start | The 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);
}