CalculationCell

CalculationCell class

Represents the calculation relevant data about one cell which is being calculated.

class CalculationCell;

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.

Properties

PropertyTypeDescription
workbookWorkbookReadonly. Gets the Workbook object.
worksheetWorksheetReadonly. Gets the Worksheet object where the cell is in.
cellRownumberReadonly. Gets the row index of the cell.
cellColumnnumberReadonly. Gets the column index of the cell.
cellCellReadonly. Gets the Cell object which is being calculated.

Methods

MethodDescription
setCalculatedValue(VObject)Sets the calculated value for the cell.

workbook

Readonly. Gets the Workbook object.

workbook : Workbook;

worksheet

Readonly. Gets the Worksheet object where the cell is in.

worksheet : Worksheet;

cellRow

Readonly. Gets the row index of the cell.

cellRow : number;

cellColumn

Readonly. Gets the column index of the cell.

cellColumn : number;

cell

Readonly. Gets the Cell object which is being calculated.

cell : Cell;

setCalculatedValue(VObject)

Sets the calculated value for the cell.

setCalculatedValue(v: VObject) : void;

Parameters:

ParameterTypeDescription
vVObject

Remarks

User can set the calculated result by this method to ignore the automatic calculation for the cell.