@univerjs/engine-formula v0.5.4
Class: DefinedNamesService
Defined in: submodules/univer/packages/engine-formula/src/services/defined-names.service.ts:80
Extends
Implements
Constructors
new DefinedNamesService()
new DefinedNamesService(_univerInstanceService): DefinedNamesService
Defined in: submodules/univer/packages/engine-formula/src/services/defined-names.service.ts:102
Parameters
Parameter | Type |
---|---|
_univerInstanceService | IUniverInstanceService |
Returns
Overrides
Properties
Property | Modifier | Type | Default value | Inherited from | Defined in |
---|---|---|---|---|---|
_disposed | protected | boolean | false | Disposable ._disposed | submodules/univer/packages/core/src/shared/lifecycle.ts:96 |
currentRange$ | readonly | Observable <IUnitRange > | undefined | - | submodules/univer/packages/engine-formula/src/services/defined-names.service.ts:97 |
focusRange$ | readonly | Observable <IDefinedNamesServiceFocusParam > | undefined | - | submodules/univer/packages/engine-formula/src/services/defined-names.service.ts:100 |
update$ | readonly | Observable <unknown > | undefined | - | submodules/univer/packages/engine-formula/src/services/defined-names.service.ts:85 |
Methods
dispose()
dispose(): void
Defined in: submodules/univer/packages/engine-formula/src/services/defined-names.service.ts:107
Returns
void
Overrides
disposeWithMe()
disposeWithMe(disposable): IDisposable
Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:99
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Inherited from
ensureNotDisposed()
protected ensureNotDisposed(): void
Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:103
Returns
void
Inherited from
focusRange()
focusRange(unitId, id): void
Defined in: submodules/univer/packages/engine-formula/src/services/defined-names.service.ts:116
Parameters
Parameter | Type |
---|---|
unitId | string |
id | string |
Returns
void
Implementation of
IDefinedNamesService
.focusRange
getCurrentRange()
getCurrentRange(): IUnitRange
Defined in: submodules/univer/packages/engine-formula/src/services/defined-names.service.ts:130
Returns
Implementation of
IDefinedNamesService
.getCurrentRange
getCurrentRangeForString()
getCurrentRangeForString(): string
Defined in: submodules/univer/packages/engine-formula/src/services/defined-names.service.ts:134
Returns
string
Implementation of
IDefinedNamesService
.getCurrentRangeForString
getDefinedNameMap()
getDefinedNameMap(unitId): IDefinedNameMapItem
Defined in: submodules/univer/packages/engine-formula/src/services/defined-names.service.ts:164
Parameters
Parameter | Type |
---|---|
unitId | string |
Returns
Implementation of
IDefinedNamesService
.getDefinedNameMap
getValueById()
getValueById(unitId, id): IDefinedNamesServiceParam
Defined in: submodules/univer/packages/engine-formula/src/services/defined-names.service.ts:178
Parameters
Parameter | Type |
---|---|
unitId | string |
id | string |
Returns
Implementation of
IDefinedNamesService
.getValueById
getValueByName()
getValueByName(unitId, name):
| null
| IDefinedNamesServiceParam
Defined in: submodules/univer/packages/engine-formula/src/services/defined-names.service.ts:168
Parameters
Parameter | Type |
---|---|
unitId | string |
name | string |
Returns
| null
| IDefinedNamesServiceParam
Implementation of
IDefinedNamesService
.getValueByName
getWorksheetByRef()
getWorksheetByRef(unitId, ref): Nullable<Worksheet>
Defined in: submodules/univer/packages/engine-formula/src/services/defined-names.service.ts:111
Parameters
Parameter | Type |
---|---|
unitId | string |
ref | string |
Returns
Implementation of
IDefinedNamesService
.getWorksheetByRef
hasDefinedName()
hasDefinedName(unitId): boolean
Defined in: submodules/univer/packages/engine-formula/src/services/defined-names.service.ts:182
Parameters
Parameter | Type |
---|---|
unitId | string |
Returns
boolean
Implementation of
IDefinedNamesService
.hasDefinedName
registerDefinedName()
registerDefinedName(unitId, param): void
Defined in: submodules/univer/packages/engine-formula/src/services/defined-names.service.ts:143
Parameters
Parameter | Type |
---|---|
unitId | string |
param | IDefinedNamesServiceParam |
Returns
void
Implementation of
IDefinedNamesService
.registerDefinedName
registerDefinedNames()
registerDefinedNames(unitId, params): void
Defined in: submodules/univer/packages/engine-formula/src/services/defined-names.service.ts:138
Parameters
Parameter | Type |
---|---|
unitId | string |
params | IDefinedNameMapItem |
Returns
void
Implementation of
IDefinedNamesService
.registerDefinedNames
removeDefinedName()
removeDefinedName(unitId, id): void
Defined in: submodules/univer/packages/engine-formula/src/services/defined-names.service.ts:154
Parameters
Parameter | Type |
---|---|
unitId | string |
id | string |
Returns
void
Implementation of
IDefinedNamesService
.removeDefinedName
removeUnitDefinedName()
removeUnitDefinedName(unitId): void
Defined in: submodules/univer/packages/engine-formula/src/services/defined-names.service.ts:159
Parameters
Parameter | Type |
---|---|
unitId | string |
Returns
void
Implementation of
IDefinedNamesService
.removeUnitDefinedName
setCurrentRange()
setCurrentRange(range): void
Defined in: submodules/univer/packages/engine-formula/src/services/defined-names.service.ts:125
Parameters
Parameter | Type |
---|---|
range | IUnitRange |
Returns
void