API Reference
@univerjs
@univerjs/engine-formula
classes
Definednamesservice

@univerjs/engine-formula v0.4.2Docs


Class: DefinedNamesService

Extends

Implements

Constructors

new DefinedNamesService()

new DefinedNamesService(_univerInstanceService): DefinedNamesService

Parameters

ParameterType
_univerInstanceServiceIUniverInstanceService

Returns

DefinedNamesService

Overrides

Disposable.constructor

Defined in

packages/engine-formula/src/services/defined-names.service.ts:102 (opens in a new tab)

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseDisposable._disposedpackages/core/src/shared/lifecycle.ts:93 (opens in a new tab)
currentRange$readonlyObservable<IUnitRange>undefined-packages/engine-formula/src/services/defined-names.service.ts:97 (opens in a new tab)
focusRange$readonlyObservable<IDefinedNamesServiceFocusParam>undefined-packages/engine-formula/src/services/defined-names.service.ts:100 (opens in a new tab)
update$readonlyObservable<unknown>undefined-packages/engine-formula/src/services/defined-names.service.ts:85 (opens in a new tab)

Methods

dispose()

dispose(): void

Returns

void

Overrides

Disposable.dispose

Defined in

packages/engine-formula/src/services/defined-names.service.ts:107 (opens in a new tab)


disposeWithMe()

disposeWithMe(disposable): IDisposable

Parameters

ParameterType
disposableDisposableLike

Returns

IDisposable

Inherited from

Disposable.disposeWithMe

Defined in

packages/core/src/shared/lifecycle.ts:96 (opens in a new tab)


ensureNotDisposed()

protected ensureNotDisposed(): void

Returns

void

Inherited from

Disposable.ensureNotDisposed

Defined in

packages/core/src/shared/lifecycle.ts:100 (opens in a new tab)


focusRange()

focusRange(unitId, id): void

Parameters

ParameterType
unitIdstring
idstring

Returns

void

Implementation of

IDefinedNamesService.focusRange

Defined in

packages/engine-formula/src/services/defined-names.service.ts:116 (opens in a new tab)


getCurrentRange()

getCurrentRange(): IUnitRange

Returns

IUnitRange

Implementation of

IDefinedNamesService.getCurrentRange

Defined in

packages/engine-formula/src/services/defined-names.service.ts:130 (opens in a new tab)


getCurrentRangeForString()

getCurrentRangeForString(): string

Returns

string

Implementation of

IDefinedNamesService.getCurrentRangeForString

Defined in

packages/engine-formula/src/services/defined-names.service.ts:134 (opens in a new tab)


getDefinedNameMap()

getDefinedNameMap(unitId): IDefinedNameMapItem

Parameters

ParameterType
unitIdstring

Returns

IDefinedNameMapItem

Implementation of

IDefinedNamesService.getDefinedNameMap

Defined in

packages/engine-formula/src/services/defined-names.service.ts:164 (opens in a new tab)


getValueById()

getValueById(unitId, id): IDefinedNamesServiceParam

Parameters

ParameterType
unitIdstring
idstring

Returns

IDefinedNamesServiceParam

Implementation of

IDefinedNamesService.getValueById

Defined in

packages/engine-formula/src/services/defined-names.service.ts:178 (opens in a new tab)


getValueByName()

getValueByName(unitId, name): null | IDefinedNamesServiceParam

Parameters

ParameterType
unitIdstring
namestring

Returns

null | IDefinedNamesServiceParam

Implementation of

IDefinedNamesService.getValueByName

Defined in

packages/engine-formula/src/services/defined-names.service.ts:168 (opens in a new tab)


getWorksheetByRef()

getWorksheetByRef(unitId, ref): Nullable<Worksheet>

Parameters

ParameterType
unitIdstring
refstring

Returns

Nullable<Worksheet>

Implementation of

IDefinedNamesService.getWorksheetByRef

Defined in

packages/engine-formula/src/services/defined-names.service.ts:111 (opens in a new tab)


hasDefinedName()

hasDefinedName(unitId): boolean

Parameters

ParameterType
unitIdstring

Returns

boolean

Implementation of

IDefinedNamesService.hasDefinedName

Defined in

packages/engine-formula/src/services/defined-names.service.ts:182 (opens in a new tab)


registerDefinedName()

registerDefinedName(unitId, param): void

Parameters

ParameterType
unitIdstring
paramIDefinedNamesServiceParam

Returns

void

Implementation of

IDefinedNamesService.registerDefinedName

Defined in

packages/engine-formula/src/services/defined-names.service.ts:143 (opens in a new tab)


registerDefinedNames()

registerDefinedNames(unitId, params): void

Parameters

ParameterType
unitIdstring
paramsIDefinedNameMapItem

Returns

void

Implementation of

IDefinedNamesService.registerDefinedNames

Defined in

packages/engine-formula/src/services/defined-names.service.ts:138 (opens in a new tab)


removeDefinedName()

removeDefinedName(unitId, id): void

Parameters

ParameterType
unitIdstring
idstring

Returns

void

Implementation of

IDefinedNamesService.removeDefinedName

Defined in

packages/engine-formula/src/services/defined-names.service.ts:154 (opens in a new tab)


removeUnitDefinedName()

removeUnitDefinedName(unitId): void

Parameters

ParameterType
unitIdstring

Returns

void

Implementation of

IDefinedNamesService.removeUnitDefinedName

Defined in

packages/engine-formula/src/services/defined-names.service.ts:159 (opens in a new tab)


setCurrentRange()

setCurrentRange(range): void

Parameters

ParameterType
rangeIUnitRange

Returns

void

Implementation of

IDefinedNamesService.setCurrentRange

Defined in

packages/engine-formula/src/services/defined-names.service.ts:125 (opens in a new tab)


Copyright © 2021-2024 DreamNum Co,Ltd. All Rights Reserved.