@univerjs/sheets v0.4.2 • Docs
Function: expandToContinuousRange()
function expandToContinuousRange(
startRange,
directions,
worksheet): IRange
Expand the range to a continuous range, it uses when Ctrl + A , or only one cell selected to add a pivot table adn so on.
Parameters
Parameter | Type | Description |
---|---|---|
startRange | IRange | The start range. |
directions | IExpandParams | The directions to expand. |
worksheet | Worksheet | The worksheet working on. |
Returns
The expanded range.
Defined in
packages/sheets/src/basics/expand-range.ts:350 (opens in a new tab)