ClassFormulaCellValue
Cell value for formula expressions that calculate dynamically; holds the expression tree and recalculates when dependencies change.
Definition
Namespace:Telerik.Windows.Documents.Spreadsheet.Model
Assembly:Telerik.Windows.Documents.Spreadsheet.dll
Syntax:
public class FormulaCellValue : CellValueBase<RadExpression>, ICellValue
Inheritance: objectCellValueBase<RadExpression>FormulaCellValue
Implements:
Inherited Members
Properties
RawValue
Formula string as entered by the user (e.g., "=SUM(A1:A10)").
Declaration
public override string RawValue { get; }
Property Value
The raw value.
Overrides
ResultValueType
Type of the calculated result after the formula evaluates (e.g., Number, Text, Error).
Declaration
public override CellValueType ResultValueType { get; }
Property Value
The type of the result value.
Overrides
ValueType
Returns CellValueType.Formula.
Declaration
public override CellValueType ValueType { get; }
Property Value
The type of the value.
Overrides
Methods
GetHashCode()
Serves as a hash function for a particular type.
GetResultValueAsCellValue()
Evaluates the formula expression and returns the calculated result as a cell value.
Declaration
public ICellValue GetResultValueAsCellValue()
Returns
The cell value.
GetResultValueAsString(CellValueFormat)
Evaluates the formula and returns the result formatted as a string.
Declaration
public override string GetResultValueAsString(CellValueFormat format)
Parameters
format
The format.
Returns
The result value string.
Overrides
GetValueAsStringOverride(CellValueFormat)
Gets the value as string override.
Declaration
protected override string GetValueAsStringOverride(CellValueFormat format = null)
Parameters
format
The format.
Returns
The value as string.
Overrides