New to Telerik Document ProcessingStart a free 30-day trial

Contains currency symbol and culture information for formatting currency values in cells.

Definition

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

Assembly:Telerik.Windows.Documents.Spreadsheet.dll

Syntax:

C#
public class CurrencyInfo

Inheritance: objectCurrencyInfo

Constructors

Initializes a new instance of the CurrencyInfo class with the specified currency symbol and optional culture.

C#
public CurrencyInfo(string currencySymbol, CultureInfo culture = null)
Parameters:currencySymbolstring

The currency symbol.

cultureCultureInfo

The culture.

Fields

Represents a currency with no symbol, used when currency formatting is not required.

C#
public static readonly CurrencyInfo None

Methods

Determines whether the specified object is equal to the current object.

C#
public override bool Equals(object obj)
Parameters:objobject

The object to compare with the current object.

Returns:

bool

True if the specified object is equal to the current object; otherwise, false.

Overrides: object.Equals(object)

Serves as a hash function for a particular type.

C#
public override int GetHashCode()
Returns:

int

A hash code for the current object.

Overrides: object.GetHashCode()

Properties

Culture associated with this currency, or null if culture-agnostic.

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

The culture.

Currency symbol used in formatted output.

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

The currency symbol.

Currency info using the current culture's currency symbol.

C#
public static CurrencyInfo Symbol { get; }
Property Value:

The symbol.