Paint.TextLocale 屬性

定義

取得文字的主要地區設定。 -或- 將文字地區設定清單設定為只包含地區設定的單一成員清單。

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

屬性值

繪製文字所用的主要地區設定,絕對不會為 Null。

屬性

備註

屬性 getter 檔:

取得文字的主要地區設定。 請注意,這並非 Paint 擁有的所有地區設定相關資訊。 使用 #getTextLocales() 取得完整清單。

android.graphics.Paint.getTextLocale() JAVA 檔。

屬性 setter 檔:

將文字地區設定清單設定為只包含地區設定的單一成員清單。

如需地區設定清單如何影響某些語言的文字繪製方式,請參閱 #setTextLocales(LocaleList)

android.graphics.Paint.setTextLocale(java.util.Locale) JAVA 檔。

此頁面的部分是根據所建立和共用的工作進行修改,並根據 2.5 屬性授權中所述的詞彙來使用。

適用於