API Reference
@univerjs
@univerjs/sheets
classes
Numfmtservice

@univerjs/sheets v0.4.2Docs


Class: NumfmtService

Extends

Implements

Constructors

new NumfmtService()

new NumfmtService(
   _resourceManagerService, 
   _univerInstanceService, 
   _logService): NumfmtService

Parameters

ParameterType
_resourceManagerServiceIResourceManagerService
_univerInstanceServiceIUniverInstanceService
_logServiceILogService

Returns

NumfmtService

Overrides

Disposable.constructor

Defined in

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

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseDisposable._disposedpackages/core/src/shared/lifecycle.ts:93 (opens in a new tab)

Methods

deleteValues()

deleteValues(
   unitId, 
   subUnitId, 
   values): void

Parameters

ParameterType
unitIdstring
subUnitIdstring
valuesIRange[]

Returns

void

Implementation of

INumfmtService.deleteValues

Defined in

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


dispose()

dispose(): void

Returns

void

Inherited from

Disposable.dispose

Defined in

packages/core/src/shared/lifecycle.ts:106 (opens in a new tab)


disposeWithMe()

disposeWithMe(disposable): IDisposable

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Disposable.disposeWithMe

Defined in

packages/core/src/shared/lifecycle.ts:96 (opens in a new tab)


ensureNotDisposed()

protected ensureNotDisposed(): void

Returns

void

Inherited from

Disposable.ensureNotDisposed

Defined in

packages/core/src/shared/lifecycle.ts:100 (opens in a new tab)


getValue()

getValue(
   unitId, 
   subUnitId, 
   row, 
   col): undefined | null | {
  pattern: string;
}

Parameters

ParameterType
unitIdstring
subUnitIdstring
rownumber
colnumber

Returns

undefined | null | { pattern: string; }

Implementation of

INumfmtService.getValue

Defined in

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


setValues()

setValues(
   unitId, 
   subUnitId, 
   values): void

Parameters

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

Returns

void

Implementation of

INumfmtService.setValues

Defined in

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


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