Package com.grapecity.documents.excel
Interface IFormulaOptions
public interface IFormulaOptions
Represents the options related to formula calculation, performance, and error handing.
-
Method Summary
Modifier and TypeMethodDescriptionGets calculation mode.booleanGets whether to enable iterative calculation.doubleGets the maximum change of iterative calculation.intGets the maximum iterations of iterative calculation.voidsetCalculationMode(CalculationMode calculationMode) Sets the calculation mode, this setting will only affect I/O of MS Excel/SSJSON/SJS files.voidsetEnableIterativeCalculation(boolean value) Sets whether to enable iterative calculation.voidsetMaximumChange(double value) Sets the maximum change of iterative calculation.voidsetMaximumIterations(int value) Sets the maximum iterations of iterative calculation.
-
Method Details
-
getEnableIterativeCalculation
boolean getEnableIterativeCalculation()Gets whether to enable iterative calculation. -
setEnableIterativeCalculation
void setEnableIterativeCalculation(boolean value) Sets whether to enable iterative calculation. -
getMaximumIterations
int getMaximumIterations()Gets the maximum iterations of iterative calculation. -
setMaximumIterations
void setMaximumIterations(int value) Sets the maximum iterations of iterative calculation. -
getMaximumChange
double getMaximumChange()Gets the maximum change of iterative calculation. -
setMaximumChange
void setMaximumChange(double value) Sets the maximum change of iterative calculation. -
getCalculationMode
CalculationMode getCalculationMode()Gets calculation mode.- Returns:
- Calculation mode.
-
setCalculationMode
Sets the calculation mode, this setting will only affect I/O of MS Excel/SSJSON/SJS files. Setting CalculationMode asCalculationMode.Manualwill prevent MS Excel or SpreadJS from automatically calculating formulas on opening the workbook.Additionally,CalculationMode.Manualimproves the speed of opening workbooks that contain a large number of formulas in MS Excel and SpreadJS.If you want to disable the calculation for the current workbook, please useWorkbook.setEnableCalculation(boolean).- Parameters:
calculationMode- The calculation mode to set.
-