INumberFormatterOptions interface

INumberFormatterOptions interface

An interface that gets and sets options for formatting numbers.

Syntax


public interface INumberFormatterOptions

Members

The INumberFormatterOptions interface has these types of members:

Properties

The INumberFormatterOptions interface has these properties.

PropertyAccess typeDescription

FractionDigits

Read/write

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

GeographicRegion

Read-only

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

IntegerDigits

Read/write

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

IsDecimalPointAlwaysDisplayed

Read/write

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

IsGrouped

Read/write

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

Languages

Read-only

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

NumeralSystem

Read/write

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

ResolvedGeographicRegion

Read-only

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

ResolvedLanguage

Read-only

Gets the language 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.

Requirements (Windows 10 device family)

Device family

Universal, introduced version 10.0.10240.0

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.Globalization.NumberFormatting
Windows::Globalization::NumberFormatting [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.Globalization.NumberFormatting
Windows::Globalization::NumberFormatting [C++]

Metadata

Windows.winmd

Attributes

[Version(0x06020000)]

 

 

Show:
© 2016 Microsoft