API Reference
@univerjs
@univerjs/sheets
functions
Expandtocontinuousrange

@univerjs/sheets v0.4.2Docs


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

packages/sheets/src/basics/expand-range.ts:350 (opens in a new tab)


Copyright © 2021-2024 DreamNum Co,Ltd. All Rights Reserved.