API Reference
@univerjs
@univerjs/sheets-formula
classes
Formularefrangeservice

@univerjs/sheets-formula v0.4.2Docs


Class: FormulaRefRangeService

Extends

Constructors

new FormulaRefRangeService()

new FormulaRefRangeService(
   _refRangeService, 
   _lexerTreeBuilder, 
   _univerInstanceService): FormulaRefRangeService

Parameters

ParameterType
_refRangeServiceRefRangeService
_lexerTreeBuilderLexerTreeBuilder
_univerInstanceServiceIUniverInstanceService

Returns

FormulaRefRangeService

Overrides

Disposable.constructor

Defined in

packages/sheets-formula/src/services/formula-ref-range.service.ts:36 (opens in a new tab)

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
_disposedprotectedbooleanfalseDisposable._disposedpackages/core/src/shared/lifecycle.ts:93 (opens in a new tab)

Methods

dispose()

dispose(): void

Returns

void

Inherited from

Disposable.dispose

Defined in

packages/core/src/shared/lifecycle.ts:106 (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)


registerFormula()

registerFormula(
   unitId, 
   subUnitId, 
   formula, 
   callback): IDisposable

Parameters

ParameterType
unitIdstring
subUnitIdstring
formulastring
callbackFormulaChangeCallback

Returns

IDisposable

Defined in

packages/sheets-formula/src/services/formula-ref-range.service.ts:96 (opens in a new tab)


transformFormulaByEffectCommand()

transformFormulaByEffectCommand(
   unitId, 
   subUnitId, 
   formula, 
   params): string

Parameters

ParameterType
unitIdstring
subUnitIdstring
formulastring
paramsEffectRefRangeParams

Returns

string

Defined in

packages/sheets-formula/src/services/formula-ref-range.service.ts:44 (opens in a new tab)


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