NumeralSystemTranslator 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将拉丁语数字系统的位数转换为另一个数值系统的位数。
public ref class NumeralSystemTranslator sealed
/// [Windows.Foundation.Metadata.Activatable(65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.Activatable(Windows.Globalization.NumberFormatting.INumeralSystemTranslatorFactory, 65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class NumeralSystemTranslator final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(Windows.Globalization.NumberFormatting.INumeralSystemTranslatorFactory, 65536, "Windows.Foundation.UniversalApiContract")]
/// [Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
class NumeralSystemTranslator final
[Windows.Foundation.Metadata.Activatable(65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Globalization.NumberFormatting.INumeralSystemTranslatorFactory), 65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class NumeralSystemTranslator
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Globalization.NumberFormatting.INumeralSystemTranslatorFactory), 65536, "Windows.Foundation.UniversalApiContract")]
[Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
public sealed class NumeralSystemTranslator
function NumeralSystemTranslator(languages)
Public NotInheritable Class NumeralSystemTranslator
- 继承
- 属性
Windows 要求
设备系列 |
Windows 10 (在 10.0.10240.0 中引入)
|
API contract |
Windows.Foundation.UniversalApiContract (在 v1.0 中引入)
|
注解
如果你的应用将此类中使用的语言标记传递给任何 国家/地区语言支持 函数,则它必须首先通过调用 ResolveLocaleName 来转换标记。
构造函数
NumeralSystemTranslator() |
创建由用户首选的当前运行时语言值列表初始化的 NumeralSystemTranslator 对象。 |
NumeralSystemTranslator(IIterable<String>) |
创建由语言列表初始化的 NumeralSystemTranslator 对象。 |
属性
Languages |
获取用于初始化此 NumeralSystemTranslator 对象的 BCP-47 语言标记 () 。 |
NumeralSystem |
获取或设置在调用 TranslateNumerals 时,拉丁文数字将转换为的数字系统。 |
ResolvedLanguage |
获取初始化此对象时用于确定数字系统的语言。 |
方法
TranslateNumerals(String) |
将包含拉丁数字的字符串转换为包含 NumeralSystem 相应数字的字符串。 |