AbstractCalculationEngine.ForceRecalculate

AbstractCalculationEngine.ForceRecalculate method

Whether force given function to be recalculated always when calculating shared formulas.

public virtual bool ForceRecalculate(string functionName)
ParameterTypeDescription
functionNameStringname of the function. Generally it is custom function’s name. If ProcessBuiltInFunctions is true, then built-in functions will also be checked here.

Return Value

true if the specified function needs to be recalculated always.

Remarks

For shared formulas, multiple cells share the same function. If the function’s parameters keep same for those cells too, then generally this function needs to be calculated only once. So for performance consideration we only calculate such kind of function once too(Calculate is called only once, instead of being called repeatedly for every cell). However, for user’s custom implementation, maybe the function, especially the custom function, needs to be calculated differently for different cells. If so, user needs to override this method to make it return true for the function. And for Calculate, the given CalculatedValue may have been initialized with the cached value of previous calculation.

See Also