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


Interface: IDefinedNamesService

Properties

PropertyTypeDefined in
currentRange$Observable<IUnitRange>submodules/univer/packages/engine-formula/src/services/defined-names.service.ts:68
focusRange$Observable<IDefinedNamesServiceFocusParam>submodules/univer/packages/engine-formula/src/services/defined-names.service.ts:72
update$Observable<unknown>submodules/univer/packages/engine-formula/src/services/defined-names.service.ts:70

Methods

focusRange()

focusRange(unitId, id): void

Parameters

ParameterType
unitIdstring
idstring

Returns

void

Defined in

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


getCurrentRange()

getCurrentRange(): IUnitRange

Returns

IUnitRange

Defined in

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


getCurrentRangeForString()

getCurrentRangeForString(): string

Returns

string

Defined in

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


getDefinedNameMap()

getDefinedNameMap(unitId): Nullable<IDefinedNameMapItem>

Parameters

ParameterType
unitIdstring

Returns

Nullable<IDefinedNameMapItem>

Defined in

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


getValueById()

getValueById(unitId, id): Nullable<IDefinedNamesServiceParam>

Parameters

ParameterType
unitIdstring
idstring

Returns

Nullable<IDefinedNamesServiceParam>

Defined in

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


getValueByName()

getValueByName(unitId, name): Nullable<IDefinedNamesServiceParam>

Parameters

ParameterType
unitIdstring
namestring

Returns

Nullable<IDefinedNamesServiceParam>

Defined in

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


getWorksheetByRef()

getWorksheetByRef(unitId, ref): Nullable<Worksheet>

Parameters

ParameterType
unitIdstring
refstring

Returns

Nullable<Worksheet>

Defined in

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


hasDefinedName()

hasDefinedName(unitId): boolean

Parameters

ParameterType
unitIdstring

Returns

boolean

Defined in

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


registerDefinedName()

registerDefinedName(unitId, param): void

Parameters

ParameterType
unitIdstring
paramIDefinedNamesServiceParam

Returns

void

Defined in

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


registerDefinedNames()

registerDefinedNames(unitId, params): void

Parameters

ParameterType
unitIdstring
paramsIDefinedNameMapItem

Returns

void

Defined in

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


removeDefinedName()

removeDefinedName(unitId, name): void

Parameters

ParameterType
unitIdstring
namestring

Returns

void

Defined in

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


removeUnitDefinedName()

removeUnitDefinedName(unitId): void

Parameters

ParameterType
unitIdstring

Returns

void

Defined in

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


setCurrentRange()

setCurrentRange(range): void

Parameters

ParameterType
rangeIUnitRange

Returns

void

Defined in

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