語言

TextView.TextLocale 屬性

定義

取得此 TextView 中文字的預設主要 Locale 複本。 -或- 將此 TextView 中的文字預設值 Locale 設定為只包含指定地區設定的一個成員 LocaleList

public virtual Java.Util.Locale TextLocale { [Android.Runtime.Register("getTextLocale", "()Ljava/util/Locale;", "GetGetTextLocaleHandler")] get; [Android.Runtime.Register("setTextLocale", "(Ljava/util/Locale;)V", "GetSetTextLocale_Ljava_util_Locale_Handler")] set; }
[<get: Android.Runtime.Register("getTextLocale", "()Ljava/util/Locale;", "GetGetTextLocaleHandler")>]
[<set: Android.Runtime.Register("setTextLocale", "(Ljava/util/Locale;)V", "GetSetTextLocale_Ljava_util_Locale_Handler")>]
member this.TextLocale : Java.Util.Locale with get, set

屬性值

是此 TextView 中預設的主 Locale 文字。

屬性

備註

財產取得者文件:

取得此 TextView 中文字的預設主要 Locale 複本。 這永遠是 的 #getTextLocales()第一個成員。

Java 文件 android.widget.TextView.getTextLocale()

屬性設定文件:

在此 TextView 中預設 Locale 文字為僅包含指定 Locale 的單成員 LocaleList

Java 文件 android.widget.TextView.setTextLocale(java.util.Locale)

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

適用於

另請參閱