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