New to Telerik Document ProcessingStart a free 30-day trial

ICellValue

Interface

Contract for all cell value implementations providing access to content, type, and formatted display.

Definition

Namespace:Telerik.Windows.Documents.Spreadsheet.Model

Assembly:Telerik.Windows.Documents.Spreadsheet.dll

Syntax:

C#
public interface ICellValue

Derived Classes: BooleanCellValueCellValueBase<T>EmptyCellValueErrorCellValueFormulaCellValueNumberCellValueTextCellValue...

Methods

Converts the evaluated result to a formatted string; for formulas, this evaluates the expression first.

C#
string GetResultValueAsString(CellValueFormat format)
Parameters:formatCellValueFormat

The format.

Returns:

string

Converts the raw value to a formatted string for display or editing.

C#
string GetValueAsString(CellValueFormat format)
Parameters:formatCellValueFormat

The format.

Returns:

string

Properties

Unformatted value as it was originally entered or stored.

C#
string RawValue { get; }
Property Value:

The raw value.

Type of the evaluated result; for formulas, this is the type of the calculated result rather than Formula.

C#
CellValueType ResultValueType { get; }
Property Value:

The type of the result value.

Category of the cell's content (Empty, Number, Text, Formula, Boolean, RichText, or Error).

C#
CellValueType ValueType { get; }
Property Value:

The type of the value.