Partager via


MessageFormat.Locale Property

Definition

Returns the locale that's used when creating or comparing subformats. -or- Sets the locale to be used for creating argument Format objects.

public virtual Java.Util.Locale? Locale { [Android.Runtime.Register("getLocale", "()Ljava/util/Locale;", "GetGetLocaleHandler", ApiSince=24)] get; [Android.Runtime.Register("setLocale", "(Ljava/util/Locale;)V", "GetSetLocale_Ljava_util_Locale_Handler", ApiSince=24)] set; }
[<get: Android.Runtime.Register("getLocale", "()Ljava/util/Locale;", "GetGetLocaleHandler", ApiSince=24)>]
[<set: Android.Runtime.Register("setLocale", "(Ljava/util/Locale;)V", "GetSetLocale_Ljava_util_Locale_Handler", ApiSince=24)>]
member this.Locale : Java.Util.Locale with get, set

Property Value

the locale used when creating or comparing subformats

Attributes

Remarks

Property getter documentation:

Returns the locale that's used when creating or comparing subformats.

Java documentation for android.icu.text.MessageFormat.getLocale().

Property setter documentation:

Sets the locale to be used for creating argument Format objects. This affects subsequent calls to the #applyPattern applyPattern method as well as to the format and #formatToCharacterIterator formatToCharacterIterator methods.

Java documentation for android.icu.text.MessageFormat.setLocale(java.util.Locale).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to