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


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

submodules/univer/packages/sheets/src/services/numfmt/numfmt.service.ts:31

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseDisposable._disposedsubmodules/univer/packages/core/src/shared/lifecycle.ts:93

Methods

deleteValues()

deleteValues(
   unitId, 
   subUnitId, 
   values): void

Parameters

ParameterType
unitIdstring
subUnitIdstring
valuesIRange[]

Returns

void

Implementation of

INumfmtService.deleteValues

Defined in

submodules/univer/packages/sheets/src/services/numfmt/numfmt.service.ts:59


dispose()

dispose(): void

Returns

void

Inherited from

Disposable.dispose

Defined in

submodules/univer/packages/core/src/shared/lifecycle.ts:106


disposeWithMe()

disposeWithMe(disposable): IDisposable

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Disposable.disposeWithMe

Defined in

submodules/univer/packages/core/src/shared/lifecycle.ts:96


ensureNotDisposed()

protected ensureNotDisposed(): void

Returns

void

Inherited from

Disposable.ensureNotDisposed

Defined in

submodules/univer/packages/core/src/shared/lifecycle.ts:100


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

submodules/univer/packages/sheets/src/services/numfmt/numfmt.service.ts:39


setValues()

setValues(
   unitId, 
   subUnitId, 
   values): void

Parameters

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

Returns

void

Implementation of

INumfmtService.setValues

Defined in

submodules/univer/packages/sheets/src/services/numfmt/numfmt.service.ts:86