Aspose::Cells::CalculationOptions class

CalculationOptions class

Represents options for calculation.

class CalculationOptions

Methods

MethodDescription
CalculationOptions()Default constructor.
CalculationOptions(CalculationOptions_Impl* impl)Constructs from an implementation object.
CalculationOptions(const CalculationOptions& src)Copy constructor.
GetCalcStackSize()The stack size for calculating cells recursively. Default value is 200.
GetCharacterEncoding()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.
GetCustomEngine()The custom formula calculation engine to extend the default calculation engine of Aspose.Cells.
GetIgnoreError()Indicates whether errors encountered while calculating formulas should be ignored. The error may be unsupported function, external links, etc. The default value is true.
GetLinkedDataSources()Specifies the data sources for external links used in formulas.
GetPrecisionStrategy()Specifies the strategy for processing precision of calculation.
GetRecursive()Indicates whether calculate the dependent cells recursively when calculating one cell and it depends on other cells. The default value is true.
IsNull() constChecks whether the implementation object is nullptr.
explicit operator bool() constoperator bool()
operator=(const CalculationOptions& src)operator=
SetCalcStackSize(int32_t value)The stack size for calculating cells recursively. Default value is 200.
SetCharacterEncoding(EncodingType value)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.
SetCustomEngine(AbstractCalculationEngine* value)The custom formula calculation engine to extend the default calculation engine of Aspose.Cells.
SetIgnoreError(bool value)Indicates whether errors encountered while calculating formulas should be ignored. The error may be unsupported function, external links, etc. The default value is true.
SetLinkedDataSources(const Vector <Workbook>& value)Specifies the data sources for external links used in formulas.
SetPrecisionStrategy(CalculationPrecisionStrategy value)Specifies the strategy for processing precision of calculation.
SetRecursive(bool value)Indicates whether calculate the dependent cells recursively when calculating one cell and it depends on other cells. The default value is true.
~CalculationOptions()Destructor.

Fields

FieldDescription
_implThe implementation object.

See Also