@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

ParameterType
_univerInstanceServiceIUniverInstanceService

Returns

DefinedNamesService

Overrides

Disposable.constructor

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseDisposable._disposedsubmodules/univer/packages/core/src/shared/lifecycle.ts:96
currentRange$readonlyObservable<IUnitRange>undefined-submodules/univer/packages/engine-formula/src/services/defined-names.service.ts:97
focusRange$readonlyObservable<IDefinedNamesServiceFocusParam>undefined-submodules/univer/packages/engine-formula/src/services/defined-names.service.ts:100
update$readonlyObservable<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

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


focusRange()

focusRange(unitId, id): void

Defined in: submodules/univer/packages/engine-formula/src/services/defined-names.service.ts:116

Parameters

ParameterType
unitIdstring
idstring

Returns

void

Implementation of

IDefinedNamesService.focusRange


getCurrentRange()

getCurrentRange(): IUnitRange

Defined in: submodules/univer/packages/engine-formula/src/services/defined-names.service.ts:130

Returns

IUnitRange

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

ParameterType
unitIdstring

Returns

IDefinedNameMapItem

Implementation of

IDefinedNamesService.getDefinedNameMap


getValueById()

getValueById(unitId, id): IDefinedNamesServiceParam

Defined in: submodules/univer/packages/engine-formula/src/services/defined-names.service.ts:178

Parameters

ParameterType
unitIdstring
idstring

Returns

IDefinedNamesServiceParam

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

ParameterType
unitIdstring
namestring

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

ParameterType
unitIdstring
refstring

Returns

Nullable<Worksheet>

Implementation of

IDefinedNamesService.getWorksheetByRef


hasDefinedName()

hasDefinedName(unitId): boolean

Defined in: submodules/univer/packages/engine-formula/src/services/defined-names.service.ts:182

Parameters

ParameterType
unitIdstring

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

ParameterType
unitIdstring
paramIDefinedNamesServiceParam

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

ParameterType
unitIdstring
paramsIDefinedNameMapItem

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

ParameterType
unitIdstring
idstring

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

ParameterType
unitIdstring

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

ParameterType
rangeIUnitRange

Returns

void

Implementation of

IDefinedNamesService.setCurrentRange