public class FormulaSettings
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
boolean |
getCalculateOnOpen()
Indicates whether the application is required to perform a full calculation when the workbook is opened.
|
boolean |
getCalculateOnSave()
Indicates whether recalculate the workbook before saving the document, when in manual calculation mode.
|
java.lang.String |
getCalculationId()
Specifies the version of the calculation engine used to calculate values in the workbook.
|
int |
getCalculationMode()
Gets the mode for workbook calculation in ms excel.
|
boolean |
getEnableCalculationChain()
Whether enable calculation chain for formulas.
|
boolean |
getEnableIterativeCalculation()
Indicates whether enable iterative calculation to resolve circular references.
|
boolean |
getForceFullCalculation()
Indicates whether calculates all formulas every time when a calculation is triggered.
|
double |
getMaxChange()
The maximum change to resolve a circular reference.
|
int |
getMaxIteration()
The maximum iterations to resolve a circular reference.
|
boolean |
getPrecisionAsDisplayed()
Whether the precision of calculated result be set as they are displayed while calculating formulas
|
boolean |
getPreservePaddingSpaces()
Indicates whether preserve those spaces and line breaks that are padded between formula tokens
while getting and setting formulas.
|
void |
setCalculateOnOpen(boolean value)
Indicates whether the application is required to perform a full calculation when the workbook is opened.
|
void |
setCalculateOnSave(boolean value)
Indicates whether recalculate the workbook before saving the document, when in manual calculation mode.
|
void |
setCalculationId(java.lang.String value)
Specifies the version of the calculation engine used to calculate values in the workbook.
|
void |
setCalculationMode(int value)
Sets the mode for workbook calculation in ms excel.
|
void |
setEnableCalculationChain(boolean value)
Whether enable calculation chain for formulas.
|
void |
setEnableIterativeCalculation(boolean value)
Indicates whether enable iterative calculation to resolve circular references.
|
void |
setForceFullCalculation(boolean value)
Indicates whether calculates all formulas every time when a calculation is triggered.
|
void |
setMaxChange(double value)
The maximum change to resolve a circular reference.
|
void |
setMaxIteration(int value)
The maximum iterations to resolve a circular reference.
|
void |
setPrecisionAsDisplayed(boolean value)
Whether the precision of calculated result be set as they are displayed while calculating formulas
|
void |
setPreservePaddingSpaces(boolean value)
Indicates whether preserve those spaces and line breaks that are padded between formula tokens
while getting and setting formulas.
|
public boolean getCalculateOnOpen()
Remarks
This property is only for saving the settings to resultant spreadsheet file so that other applications(such as ms excel) may act accordingly when loading the resultant file. For performance consideration for most users' applications, we do not calculate any formula in the workbook automatically, no matter what value has been set for this property.public void setCalculateOnOpen(boolean value)
Remarks
This property is only for saving the settings to resultant spreadsheet file so that other applications(such as ms excel) may act accordingly when loading the resultant file. For performance consideration for most users' applications, we do not calculate any formula in the workbook automatically, no matter what value has been set for this property.public boolean getCalculateOnSave()
Remarks
This property is only for saving the settings to resultant spreadsheet file so that other applications(such as ms excel) may act accordingly when loading and manipulating the resultant file. For performance consideration for most users' applications, we do not calculate any formula in the workbook automatically, no matter what value has been set for this property.public void setCalculateOnSave(boolean value)
Remarks
This property is only for saving the settings to resultant spreadsheet file so that other applications(such as ms excel) may act accordingly when loading and manipulating the resultant file. For performance consideration for most users' applications, we do not calculate any formula in the workbook automatically, no matter what value has been set for this property.public boolean getForceFullCalculation()
Remarks
This property is only for saving the settings to resultant spreadsheet file so that other applications(such as ms excel) may act accordingly when loading and manipulating the resultant file. For performance consideration for most users' applications, we do not calculate any formula in the workbook automatically, no matter what value has been set for this property.public void setForceFullCalculation(boolean value)
Remarks
This property is only for saving the settings to resultant spreadsheet file so that other applications(such as ms excel) may act accordingly when loading and manipulating the resultant file. For performance consideration for most users' applications, we do not calculate any formula in the workbook automatically, no matter what value has been set for this property.public int getCalculationMode()
See CalcModeType.
Remarks
This property is only for saving the settings to resultant spreadsheet file so that other applications(such as ms excel) may act accordingly when loading and manipulating the resultant file. For performance consideration for most user's application, we do not calculate any formula in the workbook automatically, no matter what mode has been set for this property. If user needs to calculate formulas, please always call methods on different objects according to requirement:Workbook.calculateFormula(), Worksheet.calculateFormula(CalculationOptions,boolean),
Cell.calculate(CalculationOptions), ...etc.public void setCalculationMode(int value)
See CalcModeType.
Remarks
This property is only for saving the settings to resultant spreadsheet file so that other applications(such as ms excel) may act accordingly when loading and manipulating the resultant file. For performance consideration for most user's application, we do not calculate any formula in the workbook automatically, no matter what mode has been set for this property. If user needs to calculate formulas, please always call methods on different objects according to requirement:Workbook.calculateFormula(), Worksheet.calculateFormula(CalculationOptions,boolean),
Cell.calculate(CalculationOptions), ...etc.public java.lang.String getCalculationId()
Remarks
This property is only for saving the settings to resultant spreadsheet file so that other applications(such as ms excel) may act accordingly when loading and manipulating the resultant file. In the case of ms excel, if the value of this property is less than the recalculation engine identifier associated with the application that opens the resultant file, the application will recalculate the results of all formulas on this workbook immediately after loading the file. For performance consideration for most users' applications, we do not calculate any formula on the workbook automatically, no matter what value has been set for this property.public void setCalculationId(java.lang.String value)
Remarks
This property is only for saving the settings to resultant spreadsheet file so that other applications(such as ms excel) may act accordingly when loading and manipulating the resultant file. In the case of ms excel, if the value of this property is less than the recalculation engine identifier associated with the application that opens the resultant file, the application will recalculate the results of all formulas on this workbook immediately after loading the file. For performance consideration for most users' applications, we do not calculate any formula on the workbook automatically, no matter what value has been set for this property.public boolean getEnableIterativeCalculation()
public void setEnableIterativeCalculation(boolean value)
public int getMaxIteration()
public void setMaxIteration(int value)
public double getMaxChange()
public void setMaxChange(double value)
public boolean getPrecisionAsDisplayed()
public void setPrecisionAsDisplayed(boolean value)
public boolean getEnableCalculationChain()
Remarks
When there are lots of formulas in the workbook and user needs to calculate them repeatedly with modifying only a small part of them, it may be helpful for performance to enable the calculation chain. On the other hand, if the chain is enabled, maintaining the model of chain requires extra memory, and it also requires a bit more cpu time for some other operations such as changing cell's value or formulas. After changing this property from false to true, the calculation chain will be analyzed and built at the time of first calculation for the workbook, so the required time for the first calculation may be more than normal calculation without chain.public void setEnableCalculationChain(boolean value)
Remarks
When there are lots of formulas in the workbook and user needs to calculate them repeatedly with modifying only a small part of them, it may be helpful for performance to enable the calculation chain. On the other hand, if the chain is enabled, maintaining the model of chain requires extra memory, and it also requires a bit more cpu time for some other operations such as changing cell's value or formulas. After changing this property from false to true, the calculation chain will be analyzed and built at the time of first calculation for the workbook, so the required time for the first calculation may be more than normal calculation without chain.public boolean getPreservePaddingSpaces()
Remarks
Generally those spaces and line breaks are jsut for visual purpose, Preserving them or not does not affect the calculated result. For performance consideration, if there is no special requirement, it is better not to preserve them while processing formulas.public void setPreservePaddingSpaces(boolean value)
Remarks
Generally those spaces and line breaks are jsut for visual purpose, Preserving them or not does not affect the calculated result. For performance consideration, if there is no special requirement, it is better not to preserve them while processing formulas.See Also:
Aspose.Cells Documentation - the home page for the Aspose.Cells Product Documentation.
Aspose.Cells Support Forum - our preferred method of support.
We guarantee a prompt response to any inquiry!
© Aspose Pty Ltd 2003-2025. All Rights Reserved.