aspose.cells

Class CalculationOptions

Represents options for calculation.

Constructor Summary
 
Property Getters/Setters Summary
functiongetCalcStackSize()
function
           The stack size for calculating cells recursively. Default value is 200.
functiongetCalculationMonitor()
function
           The monitor for user to track the progress of formula calculation.
functiongetCharacterEncoding()
function
           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.
functiongetIgnoreError()
function
           Indicates whether errors encountered while calculating formulas should be ignored. The error may be unsupported function, external links, etc. The default value is true.
functiongetLinkedDataSources()
function
           Specifies the data sources for external links used in formulas.
functiongetPrecisionStrategy()
function
           Specifies the strategy for processing precision of calculation. The value of the property is CalculationPrecisionStrategy integer constant.
functiongetRecursive()
function
           Indicates whether calculate the dependent cells recursively when calculating one cell and it depends on other cells. The default value is true.
 

    • Constructor Detail

      • CalculationOptions

        function CalculationOptions()
    • Property Getters/Setters Detail

      • getIgnoreError/setIgnoreError : boolean 

        function getIgnoreError() / function setIgnoreError(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.
      • getRecursive/setRecursive : boolean 

        function getRecursive() / function setRecursive(value)
        
        Indicates whether calculate the dependent cells recursively when calculating one cell and it depends on other cells. The default value is true.
      • getCalculationMonitor/setCalculationMonitor : AbstractCalculationMonitor 

        function getCalculationMonitor() / function setCalculationMonitor(value)
        
        The monitor for user to track the progress of formula calculation.
      • getCalcStackSize/setCalcStackSize : Number 

        function getCalcStackSize() / function setCalcStackSize(value)
        
        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.
      • getPrecisionStrategy/setPrecisionStrategy : Number 

        function getPrecisionStrategy() / function setPrecisionStrategy(value)
        
        Specifies the strategy for processing precision of calculation. The value of the property is CalculationPrecisionStrategy integer constant.
      • getCharacterEncoding/setCharacterEncoding : Encoding 

        function getCharacterEncoding() / function setCharacterEncoding(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.