CellValueFormat
Number format pattern for displaying cell values; applies format strings to control how numbers, dates, times, and text appear in cells.
Definition
Namespace:Telerik.Windows.Documents.Spreadsheet.Model
Assembly:Telerik.Windows.Documents.Spreadsheet.dll
Syntax:
public class CellValueFormat
Inheritance: objectCellValueFormat
Constructors
Initializes a new CellValueFormat with the specified format pattern string.
Fields
Default general format that displays values without any special formatting rules.
public static readonly CellValueFormat GeneralFormat
Methods
Applies this format to a cell value and returns the formatted result with color, culture, and condition information.
public CellValueFormatResult GetFormatResult(ICellValue cellValue)
The cell value.
Returns:The format result.
Operators
Determines whether two cell value formats are not equal by comparing their format strings.
public static bool operator !=(CellValueFormat first, CellValueFormat second)
The first value.
secondCellValueFormatThe second value.
Returns:The result of the operator.
Determines whether two cell value formats are equal by comparing their format strings.
public static bool operator ==(CellValueFormat first, CellValueFormat second)
The first value.
secondCellValueFormatThe second value.
Returns:The result of the operator.
Properties
Format pattern string that controls how cell values are displayed.
public string FormatString { get; }
The format string.
Metadata about the format string including its category and type.
public FormatStringInfo FormatStringInfo { get; }
The format string information.