asposecells.api
Class CalculationData

Represents the required data when calculating one function, such as function name, parameters, ...etc. All objects provided by this class are for "read" purpose only. User should not change any data in the Workbook during the formula calculation process, Otherwise unexpected result or Exception may be caused.

Property Getters/Setters Summary
methodgetCalculatedValue()
methodsetCalculatedValue(value)
           Gets or sets the calculated value for this function.
methodgetCell()
           Gets the Cell object where the function is in.
methodgetCellColumn()
           Gets the column index of the cell where the function is in.
methodgetCellRow()
           Gets the row index of the cell where the function is in.
methodgetFunctionName()
           Gets the function name to be calculated.
methodgetParamCount()
           Gets the count of parameters
methodgetWorkbook()
           Gets the Workbook object where the function is in.
methodgetWorksheet()
           Gets the Worksheet object where the function is in.
 
Method Summary
methodgetParamText(index)
           Gets the literal text of the parameter at given index.
methodgetParamValue(index)
           Gets the represented value object of the parameter at given index.
 

Property Getters/Setters Detail

getCalculatedValue/setCalculatedValue : Object 

Object getCalculatedValue() / setCalculatedValue(value)
Gets or sets the calculated value for this function. User should set this property in his custom calculation engine for those functions the engine supports, and the set value will be returned when getting this property. Getting this property before setting will make the function be calculated by the default calculation engine of Aspose.Cells and the calculated value will be returned.

getWorkbook : Workbook 

Workbook getWorkbook()
Gets the Workbook object where the function is in.

getWorksheet : Worksheet 

Worksheet getWorksheet()
Gets the Worksheet object where the function is in.

getCellRow : int 

int getCellRow()
Gets the row index of the cell where the function is in.

getCellColumn : int 

int getCellColumn()
Gets the column index of the cell where the function is in.

getCell : Cell 

Cell getCell()
Gets the Cell object where the function is in.

getFunctionName : String 

String getFunctionName()
Gets the function name to be calculated.

getParamCount : int 

int getParamCount()
Gets the count of parameters

Method Detail

getParamValue

Object getParamValue(index)
Gets the represented value object of the parameter at given index.
Parameters:
index: int - index of the parameter(0 based)
Returns:
If the parameter is plain value, then returns the plain value. If the parameter is reference, then returns ReferredArea object. If the parameter references to multiple datasets, then returns array of objects.

getParamText

String getParamText(index)
Gets the literal text of the parameter at given index.
Parameters:
index: int - index of the parameter(0 based)
Returns:
literal text of the parameter

See Also:
          Aspose.Cells Documentation - the home page for the Aspose.Cellss Product Documentation.
          Aspose.Cells Support Forum - our preferred method of support.