API Reference
@univerjs
@univerjs/sheets
functions
Transformcelldatatoselectiondata

@univerjs/sheets v0.4.2Docs


Function: transformCellDataToSelectionData()

function transformCellDataToSelectionData(
   row, 
   column, 
mergeData): Nullable<ISelectionWithStyle>

Parameters

ParameterTypeDescription
rownumberSpecified Row Coordinate
columnnumberSpecified Column Coordinate
mergeDataIRange[]Obtain the data of merged cells through the worksheet object.

Returns

Nullable<ISelectionWithStyle>

ISelectionWithStyle

Deprecated

Use worksheet.getCellInfoInMergeData or SpreadsheetSkeleton.getCellByIndex instead Convert the coordinates of a single cell into a selection data.

Defined in

packages/sheets/src/basics/selection.ts:243 (opens in a new tab)


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