@univerjs/sheets v0.5.4


Class: NumfmtService

Defined in: submodules/univer/packages/sheets/src/services/numfmt/numfmt.service.ts:30

Extends

Implements

Constructors

new NumfmtService()

new NumfmtService(
   _resourceManagerService, 
   _univerInstanceService, 
   _logService): NumfmtService

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

Parameters

ParameterType
_resourceManagerServiceIResourceManagerService
_univerInstanceServiceIUniverInstanceService
_logServiceILogService

Returns

NumfmtService

Overrides

Disposable.constructor

Properties

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

Methods

deleteValues()

deleteValues(
   unitId, 
   subUnitId, 
   values): void

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

Parameters

ParameterType
unitIdstring
subUnitIdstring
valuesIRange[]

Returns

void

Implementation of

INumfmtService.deleteValues


dispose()

dispose(): void

Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:109

Returns

void

Inherited from

Disposable.dispose


disposeWithMe()

disposeWithMe(disposable): IDisposable

Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:99

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Disposable.disposeWithMe


ensureNotDisposed()

protected ensureNotDisposed(): void

Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:103

Returns

void

Inherited from

Disposable.ensureNotDisposed


getValue()

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

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

Parameters

ParameterType
unitIdstring
subUnitIdstring
rownumber
colnumber

Returns

| undefined | null | { pattern: string; }

Implementation of

INumfmtService.getValue


setValues()

setValues(
   unitId, 
   subUnitId, 
   values): void

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

Parameters

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

Returns

void

Implementation of

INumfmtService.setValues