RadExpression
Abstract base for all spreadsheet expressions, providing lazy evaluation, change propagation, and value caching for formula calculation.
Definition
Namespace:Telerik.Windows.Documents.Spreadsheet.Expressions
Assembly:Telerik.Windows.Documents.Spreadsheet.dll
Syntax:
public abstract class RadExpression
Inheritance: objectRadExpression
Derived Classes:
Constructors
Initializes a new expression with an unknown evaluation state.
protected RadExpression()
Events
Raised when the expression's cached value becomes invalid and requires recalculation.
public event EventHandler ValueInvalidated
Methods
Called only by the factory to register this expression with the workbook.
Evaluates and returns the computed value, detecting cyclic references during calculation.
Evaluates the expression and returns the result formatted as a string.
Evaluates the expression and returns the result formatted according to the specified culture.
public string GetValueAsString(CultureInfo cultureInfo)
The culture info.
Returns:The value as string.
Calculates the expression result; override to define specific evaluation logic for each expression type.
protected abstract RadExpression GetValueOverride()
The value as RadExpression.
Marks the cached value as invalid, triggering recalculation on next access and propagating invalidation to dependent expressions.
protected void InvalidateValue()
Raises the ValueInvalidated event to notify dependent expressions.
protected virtual void OnValueInvalidated()
Converts the expression to its formula string representation using the specified culture for number and list separators.
public string ToString(CultureInfo cultureInfo)
The culture info.
Returns:The expression as string.