@univerjssheetsindexfunctionsIssinglecellselection

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


Function: isSingleCellSelection()

function isSingleCellSelection(selection): boolean

Examine if a selection only contains a single cell (a merged cell is considered as a single cell in this case).

Parameters

ParameterType
selectionNullable<ISelectionWithStyle & { primary: ISelectionCell; }>

Returns

boolean

true if the selection only contains a single cell.

Defined in

submodules/univer/packages/sheets/src/commands/commands/utils/selection-utils.ts:204