CalculationOptions

CalculationOptions class

Represents options for calculation.

Constructors

NameDescription
CalculationOptions

Properties

NameTypeDescription
IgnoreErrorbooleanIndicates whether errors encountered while calculating formulas should be ignored. The error may be unsupported function
RecursivebooleanIndicates whether calculate the dependent cells recursively when calculating one cell and it depends on other cells. The
UserSpecifiedRefreshDynamicArrayFormulaboolean
RefreshDynamicArrayFormulaboolean
CalculationMonitorAbstractCalculationMonitorThe monitor for user to track the progress of formula calculation.
CalcStackSizeintThe stack size for calculating cells recursively. Default value is 200. When there are large amount of cells need to be
PrecisionStrategyintSpecifies the strategy for processing precision of calculation. The value of the property is CalculationPrecisionStrateg
LinkedDataSourcesWorkbook[]Specifies the data sources for external links used in formulas. Like Workbook.updateLinkedDataSource(com.aspose.cells.Wo
CharacterEncodingEncodingSpecifies the encoding used for encoding/decoding characters when calculating formulas. For functions such as CHAR, CODE

CalculationOptions()

CalculationOptions.IgnoreError property

Indicates whether errors encountered while calculating formulas should be ignored. The error may be unsupported function, external links, etc. The default value is true.

Type: boolean

CalculationOptions.Recursive property

Indicates whether calculate the dependent cells recursively when calculating one cell and it depends on other cells. The default value is true.

Type: boolean

CalculationOptions.UserSpecifiedRefreshDynamicArrayFormula property

Type: boolean

CalculationOptions.RefreshDynamicArrayFormula property

Type: boolean

CalculationOptions.CalculationMonitor property

The monitor for user to track the progress of formula calculation.

Type: AbstractCalculationMonitor

CalculationOptions.CalcStackSize property

The stack size for calculating cells recursively. Default value is 200. When there are large amount of cells need to be calculated recursively in the dependency tree, StackOverflowException may be caused in the calculation process. If so, user should specify smaller value for this property. For such situation, user should determine the proper value for this property according to the actual formulas and data. However, too small value may cause performance degradation for the formula calculation and value less than 2 will make it impossible to calculate formula which depends on another one. So if the specified value is less than 2, it will be reset to 2.

Type: int

CalculationOptions.PrecisionStrategy property

Specifies the strategy for processing precision of calculation. The value of the property is CalculationPrecisionStrategy integer constant.

Type: int

CalculationOptions.LinkedDataSources property

Specifies the data sources for external links used in formulas. Like Workbook.updateLinkedDataSource(com.aspose.cells.Workbook[]) , here you may specify data sources for external links used in formulas to be calculated, especially those used in INDIRECT function. For those external links used in INDIRECT function, they are not taken as part of the external links of the workbook and cannot be updated by Workbook.updateLinkedDataSource(com.aspose.cells.Workbook[]) .

Type: Workbook[]

CalculationOptions.CharacterEncoding property

Specifies the encoding used for encoding/decoding characters when calculating formulas. For functions such as CHAR, CODE, the calculated result depends on the region settings and default charset of the environment. With this property user can specify the proper encoding used for those function to get the expected result.

Type: Encoding