语言

MessageFormat.SetLocale(ULocale) 方法

定义

设置要用于创建参数 Format 对象的区域设置。

[Android.Runtime.Register("setLocale", "(Landroid/icu/util/ULocale;)V", "GetSetLocale_Landroid_icu_util_ULocale_Handler", ApiSince=24)]
public virtual void SetLocale(Android.Icu.Util.ULocale? locale);
[<Android.Runtime.Register("setLocale", "(Landroid/icu/util/ULocale;)V", "GetSetLocale_Landroid_icu_util_ULocale_Handler", ApiSince=24)>]
abstract member SetLocale : Android.Icu.Util.ULocale -> unit
override this.SetLocale : Android.Icu.Util.ULocale -> unit

参数

locale
ULocale

创建或比较子窗体时要使用的区域设置

特性

注解

设置要用于创建参数 Format 对象的区域设置。 这会影响对#applyPattern applyPattern方法以及format#formatToCharacterIterator formatToCharacterIterator方法的后续调用。

Java文档android.icu.text.MessageFormat.setLocale(android.icu.util.ULocale)。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于