ClassCellValueFormat
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
CellValueFormat(string)
Initializes a new CellValueFormat with the specified format pattern string.
Declaration
public CellValueFormat(string formatString)
Parameters
formatString
The format string.
Fields
GeneralFormat
Default general format that displays values without any special formatting rules.
Declaration
public static readonly CellValueFormat GeneralFormat
Field Value
Properties
FormatString
Format pattern string that controls how cell values are displayed.
Declaration
public string FormatString { get; }
Property Value
The format string.
FormatStringInfo
Metadata about the format string including its category and type.
Declaration
public FormatStringInfo FormatStringInfo { get; }
Property Value
The format string information.
Methods
GetFormatResult(ICellValue)
Applies this format to a cell value and returns the formatted result with color, culture, and condition information.
Declaration
public CellValueFormatResult GetFormatResult(ICellValue cellValue)
Parameters
cellValue
The cell value.
Returns
The format result.
GetHashCode()
Serves as a hash function for a particular type.
Operators
operator !=(CellValueFormat, CellValueFormat)
Determines whether two cell value formats are not equal by comparing their format strings.
Declaration
public static bool operator !=(CellValueFormat first, CellValueFormat second)
Parameters
first
The first value.
second
The second value.
Returns
The result of the operator.
operator ==(CellValueFormat, CellValueFormat)
Determines whether two cell value formats are equal by comparing their format strings.
Declaration
public static bool operator ==(CellValueFormat first, CellValueFormat second)
Parameters
first
The first value.
second
The second value.
Returns
The result of the operator.