Formatter.Locale Method

Definition

Returns the locale set by the construction of this formatter.

[Android.Runtime.Register("locale", "()Ljava/util/Locale;", "")]
public Java.Util.Locale? Locale ();
[<Android.Runtime.Register("locale", "()Ljava/util/Locale;", "")>]
member this.Locale : unit -> Java.Util.Locale

Returns

null if no localization is applied, otherwise a locale

Attributes

Exceptions

if the Formatter has been closed.

Remarks

Returns the locale set by the construction of this formatter.

The #format(java.util.Locale,String,Object...) format method for this object which has a locale argument does not change this value.

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