@univerjs/sheets v0.4.2 • Docs
Class: NumfmtService
Extends
Implements
Constructors
new NumfmtService()
new NumfmtService(
_resourceManagerService,
_univerInstanceService,
_logService): NumfmtService
Parameters
Parameter | Type |
---|---|
_resourceManagerService | IResourceManagerService |
_univerInstanceService | IUniverInstanceService |
_logService | ILogService |
Returns
Overrides
Defined in
packages/sheets/src/services/numfmt/numfmt.service.ts:31 (opens in a new tab)
Properties
Property | Modifier | Type | Default value | Inherited from | Defined in |
---|---|---|---|---|---|
_disposed | protected | boolean | false | Disposable ._disposed | packages/core/src/shared/lifecycle.ts:93 (opens in a new tab) |
Methods
deleteValues()
deleteValues(
unitId,
subUnitId,
values): void
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
values | IRange [] |
Returns
void
Implementation of
Defined in
packages/sheets/src/services/numfmt/numfmt.service.ts:59 (opens in a new tab)
dispose()
dispose(): void
Returns
void
Inherited from
Defined in
packages/core/src/shared/lifecycle.ts:106 (opens in a new tab)
disposeWithMe()
disposeWithMe(disposable): IDisposable
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Inherited from
Defined in
packages/core/src/shared/lifecycle.ts:96 (opens in a new tab)
ensureNotDisposed()
protected ensureNotDisposed(): void
Returns
void
Inherited from
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
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
row | number |
col | number |
Returns
undefined
| null
| {
pattern
: string
;
}
Implementation of
Defined in
packages/sheets/src/services/numfmt/numfmt.service.ts:39 (opens in a new tab)
setValues()
setValues(
unitId,
subUnitId,
values): void
Parameters
Parameter | Type |
---|---|
unitId | string |
subUnitId | string |
values | { pattern : string ; ranges : IRange []; }[] |
Returns
void
Implementation of
Defined in
packages/sheets/src/services/numfmt/numfmt.service.ts:86 (opens in a new tab)