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
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

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
Value
int int int

The minimum number of digits to display.

Attributes

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
Value
PlatForm::String string string

The region that is used.

Attributes

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
Value
int int int

The minimum number of digits to display.

Attributes

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
Value
PlatForm::Boolean bool bool

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

Attributes

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
Value
PlatForm::Boolean bool bool

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

Attributes

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>
Value
IVectorView<PlatForm::String> IReadOnlyList<string> IReadOnlyList<string>

The priority list of language identifiers.

Attributes

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

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
Value
PlatForm::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.

Attributes
See Also

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
Value
PlatForm::String string string

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

Attributes

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
Value
PlatForm::String string string

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

Attributes

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.