語言

MessageFormat.SetLocale(ULocale) 方法

定義

設定用於建立參數格式物件的區域。

[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

建立或比較子格式時所使用的地點

屬性

備註

設定用於建立參數格式物件的區域。 這會影響後續對 #applyPattern applyPattern 方法及 format and #formatToCharacterIterator formatToCharacterIterator 方法的呼叫。

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

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於