NumeralSystemTranslator class

Applies to Windows and Windows Phone

Translates digits of the Latin numerical system into digits of another numerical system.

Syntax


var numeralSystemTranslator = new Windows.Globalization.NumberFormatting.NumeralSystemTranslator(iIterable(String));
var numeralSystemTranslator = new Windows.Globalization.NumberFormatting.NumeralSystemTranslator();

Attributes

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

Members

The NumeralSystemTranslator class has these types of members:

Constructors

The NumeralSystemTranslator class has these constructors.

ConstructorDescription
NumeralSystemTranslator() Creates a NumeralSystemTranslator object initialized by the list of current runtime language values preferred by the user.
NumeralSystemTranslator(IIterable(String)) Creates a NumeralSystemTranslator object initialized by a language list.

 

Methods

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

MethodDescription
TranslateNumerals Converts a string of characters containing Latin digits to a string containing the corresponding digits of NumeralSystem.

 

Properties

The NumeralSystemTranslator class has these properties.

PropertyAccess typeDescription

Languages

Read-onlyGets the BCP-47 language tag(s) used to initialize this NumeralSystemTranslator object.

NumeralSystem

Read/writeGets or sets the numeral system that Latin digits will be converted to on calls to TranslateNumerals.

ResolvedLanguage

Read-onlyGets the language used to determine the numeral system when this object was initialized.

 

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.

Requirements

Minimum supported client

Windows 8.1 [Windows Store apps, desktop apps]

Minimum supported server

Windows Server 2012 R2 [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

Object
NumeralSystem values

 

 

Show:
© 2014 Microsoft