AbstractCalculationEngine Class |
Namespace: Aspose.Cells
The AbstractCalculationEngine type exposes the following members.
Name | Description | |
---|---|---|
![]() | AbstractCalculationEngine | Initializes a new instance of the AbstractCalculationEngine class |
Name | Description | |
---|---|---|
![]() | IsParamLiteralRequired |
Indicates whether this engine needs the literal text of parameter while doing calculation. Default value is false.
|
![]() | ProcessBuiltInFunctions |
Whether built-in functions that have been supported by the built-in engine should be checked and processed by this implementation.
Default is false.
If user needs to change the calculation logic of some built-in functions, this property should be set as true.
|
Name | Description | |
---|---|---|
![]() | Calculate |
Calculates one function with given data.
|
![]() | Equals | (Inherited from Object.) |
![]() | Finalize | (Inherited from Object.) |
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetType | (Inherited from Object.) |
![]() | MemberwiseClone | (Inherited from Object.) |
![]() | ToString | (Inherited from Object.) |
[C#] public class MyEngine : AbstractCalculationEngine { public override void Calculate(CalculationData data) { string funcName = data.FunctionName.ToUpper(); if ("MYFUNC".Equals(funcName)) { //do calculation for MYFUNC here int count = data.ParamCount; object res = null; for (int i = 0; i < count; i++) { object pv = data.GetParamValue(i); if (pv is ReferredArea) { ReferredArea ra = (ReferredArea)pv; pv = ra.GetValue(0, 0); } //process the parameter here //res = ...; } data.CalculatedValue = res; } } }