New to Telerik Document ProcessingStart a free 30-day trial

Contains the formatted output of a cell value, including text segments, color, culture, and conditional formatting information.

Definition

Namespace:Telerik.Windows.Documents.Spreadsheet.Formatting.FormatStrings

Assembly:Telerik.Windows.Documents.Spreadsheet.dll

Syntax:

C#
public class CellValueFormatResult

Inheritance: objectCellValueFormatResult

Constructors

Initializes a new instance of the CellValueFormatResult class.

C#
public CellValueFormatResult(IEnumerable<CellValueFormatResultItem> infos, Color? foreground, Predicate<double> condition, CultureInfo culture)
Parameters:infosIEnumerable<CellValueFormatResultItem>

The infos.

foregroundColor?

The foreground.

conditionPredicate<double>

The condition.

cultureCultureInfo

The culture.

Initializes a new instance of the CellValueFormatResult class.

C#
public CellValueFormatResult(IEnumerable<CellValueFormatResultItem> infos)
Parameters:infosIEnumerable<CellValueFormatResultItem>

The infos.

Properties

Conditional predicate that determines whether this format applies to a numeric value.

C#
public Predicate<double> Condition { get; }
Property Value:

The condition.

Culture used to format the cell value.

C#
public CultureInfo Culture { get; }
Property Value:

The culture.

Foreground color applied to the formatted value, if specified by the format string.

C#
public Color? Foreground { get; }
Property Value:

The foreground.

Collection of formatted text segments, each with its own formatting attributes.

C#
public ReadOnlyCollection<CellValueFormatResultItem> Infos { get; }
Property Value:

The infos.

Concatenated text from all format result items, including transparent segments.

C#
public string InfosText { get; }
Property Value:

The infos text.

Concatenated text from all visible (non-transparent) format result items.

C#
public string VisibleInfosText { get; }
Property Value:

The visible infos text.