次の方法で共有


MessageFormat.Locale Property

Definition

Gets the locale that's used when creating or comparing subformats. -or- Sets the locale to be used when creating or comparing subformats.

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

Property Value

the locale used when creating or comparing subformats

Attributes

Remarks

Property getter documentation:

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

Java documentation for java.text.MessageFormat.getLocale().

Property setter documentation:

Sets the locale to be used when creating or comparing subformats. This affects subsequent calls <ul> <li>to the #applyPattern applyPattern and #toPattern toPattern methods if format elements specify a format type and therefore have the subformats created in the applyPattern method, as well as <li>to the format and #formatToCharacterIterator formatToCharacterIterator methods if format elements do not specify a format type and therefore have the subformats created in the formatting methods. </ul> Subformats that have already been created are not affected.

Java documentation for java.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