AbstractCalculationMonitor Class
Monitor for user to track the progress of formula calculation.
Inheritance Hierarchy

Namespace: Aspose.Cells
Assembly: Aspose.Cells (in Aspose.Cells.dll) Version: (19.11)
public abstract class AbstractCalculationMonitor

The AbstractCalculationMonitor type exposes the following members.

Protected methodAbstractCalculationMonitor
Initializes a new instance of the AbstractCalculationMonitor class
Public propertyCalculatedValue
Gets the newly calculated value of the cell. Should be used only in AfterCalculate(Int32, Int32, Int32).
Public propertyOriginalValue
Gets the old value of the calculated cell. Should be used only in BeforeCalculate(Int32, Int32, Int32) and AfterCalculate(Int32, Int32, Int32).
Public propertyValueChanged
Whether the cell's value has been changed after the calculation. Should be used only in AfterCalculate(Int32, Int32, Int32).
Public methodAfterCalculate
Implement this method to do business after one cell has been calculated.
Public methodBeforeCalculate
Implement this method to do business before calculating one cell.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the type of the current instance.
(Inherited from Object.)
Protected methodInterrupt
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodOnCircular
Implement this method to do business when calculating one cell and circular references being encountered
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
//Custom monitor to check possibility of StackOverflowException
public class MyCalculationMonitor : AbstractCalculationMonitor
    public override void BeforeCalculate(int sheetIndex, int rowIndex, int colIndex)
        if(new StackTrace(false).FrameCount > 1000)
            throw new Exception("Stop the formula calculation because risk of StackOverflowException");
See Also