Class
CurrencyInfo

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:

cs-api-definition
public class CurrencyInfo

Inheritance: objectCurrencyInfo

Constructors

CurrencyInfo(string, CultureInfo)

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

Declaration

cs-api-definition
public CurrencyInfo(string currencySymbol, CultureInfo culture = null)

Parameters

currencySymbol

string

The currency symbol.

culture

CultureInfo

The culture.

Fields

None

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

Declaration

cs-api-definition
public static readonly CurrencyInfo None

Field Value

CurrencyInfo

Properties

Culture

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

Declaration

cs-api-definition
public CultureInfo Culture { get; }

Property Value

CultureInfo

The culture.

CurrencySymbol

Currency symbol used in formatted output.

Declaration

cs-api-definition
public string CurrencySymbol { get; }

Property Value

string

The currency symbol.

Symbol

Currency info using the current culture's currency symbol.

Declaration

cs-api-definition
public static CurrencyInfo Symbol { get; }

Property Value

CurrencyInfo

The symbol.

Methods

Equals(object)

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

Declaration

cs-api-definition
public override bool Equals(object obj)

Parameters

obj

object

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)

GetHashCode()

Serves as a hash function for a particular type.

Declaration

cs-api-definition
public override int GetHashCode()

Returns

int

A hash code for the current object.

Overrides object.GetHashCode()