@univerjs/engine-formula v0.5.0-beta.1 • Docs


Class: DefinedNamesService

Extends

Implements

Constructors

new DefinedNamesService()

new DefinedNamesService(_univerInstanceService): DefinedNamesService

Parameters

ParameterType
_univerInstanceServiceIUniverInstanceService

Returns

DefinedNamesService

Overrides

Disposable.constructor

Defined in

submodules/univer/packages/engine-formula/src/services/defined-names.service.ts:102

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseDisposable._disposedsubmodules/univer/packages/core/src/shared/lifecycle.ts:93
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

Returns

void

Overrides

Disposable.dispose

Defined in

submodules/univer/packages/engine-formula/src/services/defined-names.service.ts:107


disposeWithMe()

disposeWithMe(disposable): IDisposable

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Disposable.disposeWithMe

Defined in

submodules/univer/packages/core/src/shared/lifecycle.ts:96


ensureNotDisposed()

protected ensureNotDisposed(): void

Returns

void

Inherited from

Disposable.ensureNotDisposed

Defined in

submodules/univer/packages/core/src/shared/lifecycle.ts:100


focusRange()

focusRange(unitId, id): void

Parameters

ParameterType
unitIdstring
idstring

Returns

void

Implementation of

IDefinedNamesService.focusRange

Defined in

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


getCurrentRange()

getCurrentRange(): IUnitRange

Returns

IUnitRange

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

ParameterType
unitIdstring

Returns

IDefinedNameMapItem

Implementation of

IDefinedNamesService.getDefinedNameMap

Defined in

submodules/univer/packages/engine-formula/src/services/defined-names.service.ts:164


getValueById()

getValueById(unitId, id): IDefinedNamesServiceParam

Parameters

ParameterType
unitIdstring
idstring

Returns

IDefinedNamesServiceParam

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

ParameterType
unitIdstring
namestring

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

ParameterType
unitIdstring
refstring

Returns

Nullable<Worksheet>

Implementation of

IDefinedNamesService.getWorksheetByRef

Defined in

submodules/univer/packages/engine-formula/src/services/defined-names.service.ts:111


hasDefinedName()

hasDefinedName(unitId): boolean

Parameters

ParameterType
unitIdstring

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

ParameterType
unitIdstring
paramIDefinedNamesServiceParam

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

ParameterType
unitIdstring
paramsIDefinedNameMapItem

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

ParameterType
unitIdstring
idstring

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

ParameterType
unitIdstring

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

ParameterType
rangeIUnitRange

Returns

void

Implementation of

IDefinedNamesService.setCurrentRange

Defined in

submodules/univer/packages/engine-formula/src/services/defined-names.service.ts:125