AbstractFormulaChangeMonitor

AbstractFormulaChangeMonitor class

Monitor for user to track the change of formulas during certain operations.

abstract class AbstractFormulaChangeMonitor;

Remarks

For example, while deleting/inserting range of cells, formulas of other cells may be changed because of the shift of references. Please note, methods in the monitor may be invoked multiple times for one object which contains the formula.

Methods

MethodDescription
abstract onCellFormulaChanged(number, number, number)The event that will be triggered when the formula in a cell is changed.
abstract onFormatConditionFormulaChanged(FormatCondition)The event that will be triggered when the formula of FormatCondition is changed.

onCellFormulaChanged(number, number, number)

The event that will be triggered when the formula in a cell is changed.

abstract onCellFormulaChanged(sheetIndex: number, rowIndex: number, columnIndex: number) : void;

Parameters:

ParameterTypeDescription
sheetIndexnumberThe sheet index of the changed cell
rowIndexnumberThe row index of the changed cell
columnIndexnumberThe column index of the changed cell

onFormatConditionFormulaChanged(FormatCondition)

The event that will be triggered when the formula of FormatCondition is changed.

abstract onFormatConditionFormulaChanged(fc: FormatCondition) : void;

Parameters:

ParameterTypeDescription
fcFormatConditionThe FormatCondition object whose formula is changed