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


Function: copyRangeStyles()

function copyRangeStyles(
   worksheet, 
   startRow, 
   endRow, 
   startColumn, 
   endColumn, 
   isRow, 
styleRowOrColumn): IObjectMatrixPrimitiveType<ICellData>

Copy the styles of a range of cells to another range. Used for insert row and insert column.

Parameters

ParameterType
worksheetWorksheet
startRownumber
endRownumber
startColumnnumber
endColumnnumber
isRowboolean
styleRowOrColumnnumber

Returns

IObjectMatrixPrimitiveType<ICellData>

Defined in

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