@univerjs-pro/engine-formula v0.5.4


Interface: IDefinedNamesService

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

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

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

Parameters

ParameterType
unitIdstring
idstring

Returns

void


getCurrentRange()

getCurrentRange(): IUnitRange

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

Returns

IUnitRange


getCurrentRangeForString()

getCurrentRangeForString(): string

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

Returns

string


getDefinedNameMap()

getDefinedNameMap(unitId): Nullable<IDefinedNameMapItem>

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

Parameters

ParameterType
unitIdstring

Returns

Nullable<IDefinedNameMapItem>


getValueById()

getValueById(unitId, id): Nullable<IDefinedNamesServiceParam>

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

Parameters

ParameterType
unitIdstring
idstring

Returns

Nullable<IDefinedNamesServiceParam>


getValueByName()

getValueByName(unitId, name): Nullable<IDefinedNamesServiceParam>

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

Parameters

ParameterType
unitIdstring
namestring

Returns

Nullable<IDefinedNamesServiceParam>


getWorksheetByRef()

getWorksheetByRef(unitId, ref): Nullable<Worksheet>

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

Parameters

ParameterType
unitIdstring
refstring

Returns

Nullable<Worksheet>


hasDefinedName()

hasDefinedName(unitId): boolean

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

Parameters

ParameterType
unitIdstring

Returns

boolean


registerDefinedName()

registerDefinedName(unitId, param): void

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

Parameters

ParameterType
unitIdstring
paramIDefinedNamesServiceParam

Returns

void


registerDefinedNames()

registerDefinedNames(unitId, params): void

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

Parameters

ParameterType
unitIdstring
paramsIDefinedNameMapItem

Returns

void


removeDefinedName()

removeDefinedName(unitId, name): void

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

Parameters

ParameterType
unitIdstring
namestring

Returns

void


removeUnitDefinedName()

removeUnitDefinedName(unitId): void

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

Parameters

ParameterType
unitIdstring

Returns

void


setCurrentRange()

setCurrentRange(range): void

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

Parameters

ParameterType
rangeIUnitRange

Returns

void