API Reference
@univerjs
@univerjs/sheets
functions
Copyrangestyles

@univerjs/sheets v0.4.2Docs


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

packages/sheets/src/commands/commands/utils/selection-utils.ts:248 (opens in a new tab)


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