API Reference
@univerjs
@univerjs/sheets
interfaces
Inumfmtservice

@univerjs/sheets v0.4.2Docs


Interface: INumfmtService

Methods

deleteValues()

deleteValues(
   unitId, 
   subUnitId, 
   values): void

Parameters

ParameterType
unitIdstring
subUnitIdstring
valuesIRange[]

Returns

void

Defined in

packages/sheets/src/services/numfmt/type.ts:63 (opens in a new tab)


getValue()

getValue(
   unitId, 
   subUnitId, 
   row, 
   col, 
model?): Nullable<INumfmtItemWithCache>

Parameters

ParameterType
unitIdstring
subUnitIdstring
rownumber
colnumber
model?ObjectMatrix<INumfmtItem>

Returns

Nullable<INumfmtItemWithCache>

Defined in

packages/sheets/src/services/numfmt/type.ts:51 (opens in a new tab)


setValues()

setValues(
   unitId, 
   subUnitId, 
   values): void

Parameters

ParameterType
unitIdstring
subUnitIdstring
values{ pattern: string; ranges: IRange[]; }[]

Returns

void

Defined in

packages/sheets/src/services/numfmt/type.ts:58 (opens in a new tab)


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