CurrencyFormatter CurrencyFormatter CurrencyFormatter CurrencyFormatter CurrencyFormatter Class

Definition

Formats and parses currencies.

public : sealed class CurrencyFormatter : ICurrencyFormatter, ICurrencyFormatter2, INumberFormatter, INumberFormatter2, INumberFormatterOptions, INumberParser, INumberRounderOption, ISignedZeroOption, ISignificantDigitsOption
struct winrt::Windows::Globalization::NumberFormatting::CurrencyFormatter : ICurrencyFormatter, ICurrencyFormatter2, INumberFormatter, INumberFormatter2, INumberFormatterOptions, INumberParser, INumberRounderOption, ISignedZeroOption, ISignificantDigitsOption
public sealed class CurrencyFormatter : ICurrencyFormatter, ICurrencyFormatter2, INumberFormatter, INumberFormatter2, INumberFormatterOptions, INumberParser, INumberRounderOption, ISignedZeroOption, ISignificantDigitsOption
Public NotInheritable Class CurrencyFormatter Implements ICurrencyFormatter, ICurrencyFormatter2, INumberFormatter, INumberFormatter2, INumberFormatterOptions, INumberParser, INumberRounderOption, ISignedZeroOption, ISignificantDigitsOption
var currencyFormatter = new currencyFormatter(currencyCode);
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

If your app passes language tags used in this class to any National Language Support functions, it must first convert the tags by calling ResolveLocaleName.

Constructors

CurrencyFormatter(String) CurrencyFormatter(String) CurrencyFormatter(String) CurrencyFormatter(String) CurrencyFormatter(String)

Creates a CurrencyFormatter object that is initialized with a currency identifier.

CurrencyFormatter(String, IIterable<String>, String) CurrencyFormatter(String, IIterable<String>, String) CurrencyFormatter(String, IIterable<String>, String) CurrencyFormatter(String, IIterable<String>, String) CurrencyFormatter(String, IIterable<String>, String)

Creates a CurrencyFormatter object initialized with a currency identifier, language list, and geographic region.

Properties

Currency Currency Currency Currency Currency

Note

Currency may be read-only for releases after Windows 8.1. Instead, use a new CurrencyFormatter.

Gets the identifier for the currency to be used for formatting and parsing currency values.

FractionDigits FractionDigits FractionDigits FractionDigits FractionDigits

Gets or sets the minimum number of digits to display for the fraction part of the currency value.

GeographicRegion GeographicRegion GeographicRegion GeographicRegion GeographicRegion

Gets the region that is used when formatting and parsing currency values.

IntegerDigits IntegerDigits IntegerDigits IntegerDigits IntegerDigits

Gets or sets the minimum number of digits to display for the integer part of the currency value.

IsDecimalPointAlwaysDisplayed IsDecimalPointAlwaysDisplayed IsDecimalPointAlwaysDisplayed IsDecimalPointAlwaysDisplayed IsDecimalPointAlwaysDisplayed

Gets or sets whether the decimal point of the currency value should always be displayed.

IsGrouped IsGrouped IsGrouped IsGrouped IsGrouped

Gets or sets whether the integer part of the currency value should be grouped.

IsZeroSigned IsZeroSigned IsZeroSigned IsZeroSigned IsZeroSigned

Gets or sets whether -0 is formatted using the conventions for negative numbers or for positive numbers. (In the Latin numeral system, the choice is "-0" or "0".)

Languages Languages Languages Languages Languages

Gets the priority list of language identifiers that is used when formatting and parsing currency values.

Mode Mode Mode Mode Mode

Gets or sets whether the currency is formatted with the currency symbol or currency code.

NumberRounder NumberRounder NumberRounder NumberRounder NumberRounder

Gets or sets the current rounding strategy to be used when formatting currency amounts.

NumeralSystem NumeralSystem NumeralSystem NumeralSystem NumeralSystem

Gets or sets the numbering system that is used to format and parse currency values.

ResolvedGeographicRegion ResolvedGeographicRegion ResolvedGeographicRegion ResolvedGeographicRegion ResolvedGeographicRegion

Gets the geographic region that was most recently used to format or parse currency values.

ResolvedLanguage ResolvedLanguage ResolvedLanguage ResolvedLanguage ResolvedLanguage

Gets the language that was most recently used to format or parse currency values.

SignificantDigits SignificantDigits SignificantDigits SignificantDigits SignificantDigits

Gets or sets the current padding to significant digits when a currency amount is formatted.

Methods

ApplyRoundingForCurrency(RoundingAlgorithm) ApplyRoundingForCurrency(RoundingAlgorithm) ApplyRoundingForCurrency(RoundingAlgorithm) ApplyRoundingForCurrency(RoundingAlgorithm) ApplyRoundingForCurrency(RoundingAlgorithm)

Prepares the CurrencyFormatter object to format currency values with a specified rounding algorithm.

Format(Double) Format(Double) Format(Double) Format(Double) Format(Double)

Returns a string representation of a Double currency value.

Format(Int64) Format(Int64) Format(Int64) Format(Int64) Format(Int64)

Returns a string representation of an Int64 currency value.

Format(UInt64) Format(UInt64) Format(UInt64) Format(UInt64) Format(UInt64)

Returns a string representation of a UInt64 currency value.

FormatDouble(Double) FormatDouble(Double) FormatDouble(Double) FormatDouble(Double) FormatDouble(Double)

Returns a string representation of a Double currency value.

FormatInt(Int64) FormatInt(Int64) FormatInt(Int64) FormatInt(Int64) FormatInt(Int64)

Returns a string representation of an Int64 currency value.

FormatUInt(UInt64) FormatUInt(UInt64) FormatUInt(UInt64) FormatUInt(UInt64) FormatUInt(UInt64)

Returns a string representation of a UInt64 currency value.

ParseDouble(String) ParseDouble(String) ParseDouble(String) ParseDouble(String) ParseDouble(String)

Attempts to parse a string representation of a Double currency value.

ParseInt(String) ParseInt(String) ParseInt(String) ParseInt(String) ParseInt(String)

Attempts to parse a string representation of an integer currency value.

ParseUInt(String) ParseUInt(String) ParseUInt(String) ParseUInt(String) ParseUInt(String)

Attempts to parse a string representation of an unsigned integer currency value.

See Also