I​Number​Formatter​Options I​Number​Formatter​Options I​Number​Formatter​Options I​Number​Formatter​Options Interface

Definition

An interface that gets and sets options for formatting numbers.

public : interface INumberFormatterOptionspublic interface INumberFormatterOptionsPublic Interface INumberFormatterOptions// You can use this interface in JavaScript.
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 from this interface to any National Language Support functions, it must first convert the tags by calling ResolveLocaleName.

Properties

FractionDigits FractionDigits FractionDigits FractionDigits

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

public : int FractionDigits { get; set; }public int FractionDigits { get; set; }Public ReadWrite Property FractionDigits As int// You can use this property in JavaScript.
Value
int int int int

The minimum number of digits to display.

GeographicRegion GeographicRegion GeographicRegion GeographicRegion

Gets the region that is used when formatting and parsing numbers.

public : PlatForm::String GeographicRegion { get; }public string GeographicRegion { get; }Public ReadOnly Property GeographicRegion As string// You can use this property in JavaScript.
Value
PlatForm::String string string string

The region that is used.

IntegerDigits IntegerDigits IntegerDigits IntegerDigits

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

public : int IntegerDigits { get; set; }public int IntegerDigits { get; set; }Public ReadWrite Property IntegerDigits As int// You can use this property in JavaScript.
Value
int int int int

The minimum number of digits to display.

IsDecimalPointAlwaysDisplayed IsDecimalPointAlwaysDisplayed IsDecimalPointAlwaysDisplayed IsDecimalPointAlwaysDisplayed

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

public : PlatForm::Boolean IsDecimalPointAlwaysDisplayed { get; set; }public bool IsDecimalPointAlwaysDisplayed { get; set; }Public ReadWrite Property IsDecimalPointAlwaysDisplayed As bool// You can use this property in JavaScript.
Value
PlatForm::Boolean bool bool bool

True if the decimal point of the number should always be displayed, and false otherwise.

IsGrouped IsGrouped IsGrouped IsGrouped

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

public : PlatForm::Boolean IsGrouped { get; set; }public bool IsGrouped { get; set; }Public ReadWrite Property IsGrouped As bool// You can use this property in JavaScript.
Value
PlatForm::Boolean bool bool bool

True if the integer part of the number should be grouped, and false otherwise.

Languages Languages Languages Languages

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

public : IVectorView<string> Languages { get; }public IReadOnlyList<string> Languages { get; }Public ReadOnly Property Languages As IReadOnlyList<string>// You can use this property in JavaScript.
Value
IVectorView<PlatForm::String> IReadOnlyList<string> IReadOnlyList<string> IReadOnlyList<string>

The priority list of language identifiers.

Remarks

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

NumeralSystem NumeralSystem NumeralSystem NumeralSystem

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

public : PlatForm::String NumeralSystem { get; set; }public string NumeralSystem { get; set; }Public ReadWrite Property NumeralSystem As string// You can use this property in JavaScript.
Value
PlatForm::String string string string

A string that indicates the numeral system of the formatter, such as "Latn" for the Latin numeral system (0123456789) or "Arab" for the Arabic-Indic numeral system (٠١٢٣٤٥٦٧٨٩). See the supported NumeralSystem values.

See Also

ResolvedGeographicRegion ResolvedGeographicRegion ResolvedGeographicRegion ResolvedGeographicRegion

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

public : PlatForm::String ResolvedGeographicRegion { get; }public string ResolvedGeographicRegion { get; }Public ReadOnly Property ResolvedGeographicRegion As string// You can use this property in JavaScript.
Value
PlatForm::String string string string

The geographic region that was most recently used to format or parse numbers.

ResolvedLanguage ResolvedLanguage ResolvedLanguage ResolvedLanguage

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

public : PlatForm::String ResolvedLanguage { get; }public string ResolvedLanguage { get; }Public ReadOnly Property ResolvedLanguage As string// You can use this property in JavaScript.
Value
PlatForm::String string string string

The language from the priority list of language identifiers that was most recently used to format or parse numbers.

Remarks

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