@univerjssheetsindexfunctionsExpandtocontinuousrange

@univerjs/sheets v0.5.0-beta.1Docs


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

ParameterTypeDescription
startRangeIRangeThe start range.
directionsIExpandParamsThe directions to expand.
worksheetWorksheetThe worksheet working on.

Returns

IRange

The expanded range.

Defined in

submodules/univer/packages/sheets/src/basics/expand-range.ts:350