Aspose::Cells::CalculationData class

CalculationData class

Represents the required data when calculating one function, such as function name, parameters, …etc.

class CalculationData

Methods

MethodDescription
CalculationData(CalculationData_Impl* impl)Constructs from an implementation object.
CalculationData(const CalculationData& src)Copy constructor.
GetCalculatedValue()Gets or sets the calculated value for this function.
GetCell()Gets the Cell object where the function is in.
GetCellColumn()Gets the column index of the cell where the function is in.
GetCellRow()Gets the row index of the cell where the function is in.
GetFunctionName()Gets the function name to be calculated.
GetParamCount()Gets the count of parameters.
GetParamText(int32_t index)Gets the literal text of the parameter at given index.
GetParamValue(int32_t index)Gets the represented value object of the parameter at given index.
GetParamValueInArrayMode(int32_t index, int32_t maxRowCount, int32_t maxColumnCount)Gets the value(s) of the parameter at given index. If the parameter is some kind of expression that needs to be calculated, then it will be calculated in array mode.
GetWorkbook()Gets the Workbook object where the function is in.
GetWorksheet()Gets the Worksheet object where the function is in.
IsNull() constChecks whether the implementation object is nullptr.
explicit operator bool() constoperator bool()
operator=(const CalculationData& src)operator=
SetCalculatedValue(const Aspose::Cells::Object& value)Gets or sets the calculated value for this function.
~CalculationData()Destructor.

Fields

FieldDescription
_implThe implementation object.

Remarks

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.

See Also