API REFERENCE
getCellRanges
Reads current cell selection boundaries. Review the meaning of display row/column coordinates.
What does this API do?
Reads current cell selection boundaries. Review the meaning of display row/column coordinates.
API for Pro features: Cell range selection
Exact input and result types
getCellRanges(): Promise<CellRangeBounds[]>| Arguments | Required | Type |
|---|
The return type is Promise<CellRangeBounds[]>.
Usage flow
After registering and initializing the Grid element, call grid.getCellRanges(…). Read the return value with await. For methods returning a boolean or report, inspect the result before continuing.
Read related types
Feature explanations and examples
- Cell range selection
A cell range is a rectangle spanning rows and columns. It defines the scope for copying, pasting, filling, and chart creation; selecting it does not change values.