Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

PermilleFormatter class

Applies to Windows and Windows Phone

Formats and parses permillages.

Syntax


public ref class PermilleFormatter sealed : INumberFormatterOptions,
    INumberFormatter,
    INumberFormatter2,
    INumberParser,
    ISignificantDigitsOption,
    INumberRounderOption,
    ISignedZeroOption

Attributes

[DualApiPartition()]
[MarshalingBehavior(Agile)]
[Threading(Both)]
[Version(0x06020000)]

Members

The PermilleFormatter class has these types of members:

Constructors

The PermilleFormatter class has these constructors.

ConstructorDescription
PermilleFormatter() Creates a PermilleFormatter object and initializes it to default values.
PermilleFormatter(IIterable(String), String) Creates a PermilleFormatter object initialized by a language list and a geographic region.

 

Methods

The PermilleFormatter class has these methods. With C#, Visual Basic, and C++, it also inherits methods from the Object class.

MethodDescription
Format(Double) Returns a string representation of a Double permillage.
Format(Int64) Returns a string representation of an Int64 permillage.
Format(UInt64) Returns a string representation of a UInt64 permillage.
FormatDouble Returns a string representation of a Double permillage.
FormatInt Returns a string representation of an Int64 permillage.
FormatUInt Returns a string representation of a UInt64 permillage.
ParseDouble Attempts to parse a string representation of a Double permillage.
ParseInt Attempts to parse a string representation of an integer permillage.
ParseUInt Attempts to parse a string representation of an unsigned integer permillage.

 

Properties

The PermilleFormatter class has these properties.

PropertyAccess typeDescription

FractionDigits

Read/writeGets or sets the minimum number of digits to display for the fraction part of the permillage.

GeographicRegion

Read-onlyGets the region that is used when formatting and parsing permille values.

IntegerDigits

Read/writeGets or sets the minimum number of digits to display for the integer part of the permillage.

IsDecimalPointAlwaysDisplayed

Read/writeGets or sets whether the decimal point of the permillage should always be displayed.

IsGrouped

Read/writeGets or sets whether the integer part of the permillage should be grouped.

IsZeroSigned

Read/writeGets or sets whether -0 is formatted as -0 or 0.

Languages

Read-onlyGets the priority list of language identifiers that is used when formatting and parsing permille values.

NumberRounder

Read/writeGets or sets the current rounding strategy to be used when formatting permilles.

NumeralSystem

Read/writeGets or sets the numbering system that is used to format and parse permille values.

ResolvedGeographicRegion

Read-onlyGets the geographic region that was most recently used to format or parse permille values.

ResolvedLanguage

Read-onlyGets the language that was most recently used to format or parse permille values.

SignificantDigits

Read/writeGets or sets the current padding to significant digits when a permille is formatted.

 

Remarks

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

Examples

No code example is currently available or this language may not be supported.

Requirements

Minimum supported client

Windows 8 [Windows Store apps, desktop apps]

Minimum supported server

Windows Server 2012 [Windows Store apps, desktop apps]

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

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

Metadata

Windows.winmd

See also

Number formatting and parsing sample
Object
INumberFormatterOptions
INumberFormatter
INumberFormatter2
INumberParser
ISignificantDigitsOption
INumberRounderOption

 

 

Show:
© 2014 Microsoft