CellValueBase<T>
Abstract base for strongly-typed cell value implementations, managing value storage, formatting, and string conversion.
Definition
Namespace:Telerik.Windows.Documents.Spreadsheet.Model
Assembly:Telerik.Windows.Documents.Spreadsheet.dll
Type Parameters:
T
The type of the underlying value.
Syntax:
public abstract class CellValueBase<T> : ICellValue
Inheritance: objectCellValueBase<T>
Derived Classes:
Implements:
Constructors
Initializes a new instance of the CellValueBase<T> class.
protected CellValueBase(T value)
The value.
Methods
Converts the evaluated result value to a formatted string for display.
public virtual string GetResultValueAsString(CellValueFormat format)
The format.
Returns:Implements:
Converts the cell value to a string using the specified format, caching the result for performance.
public string GetValueAsString(CellValueFormat format)
The format.
Returns:Implements:
Gets the value as string override.
protected virtual string GetValueAsStringOverride(CellValueFormat format = null)
The format.
Returns:Clears the cached string representation, forcing it to be recalculated on next access.
public void InvalidateEditFormatString()
Properties
Gets the unformatted string representation of the stored value.
public virtual string RawValue { get; }
The raw value.
Implements:
Gets the evaluated value type after formula calculation; same as ValueType for non-formula values.
public virtual CellValueType ResultValueType { get; }
The type of the result value.
Implements:
Gets the strongly-typed value stored in the cell.
public T Value { get; }
The value.
Gets the type of the value.
public abstract CellValueType ValueType { get; }
The type of the value.
Implements: