共用方式為


NumberFormatter.WithLocale Method

Definition

Overloads

WithLocale(ULocale)

Call this method at the beginning of a NumberFormatter fluent chain in which the locale is known at the call site.

WithLocale(Locale)

Call this method at the beginning of a NumberFormatter fluent chain in which the locale is known at the call site.

WithLocale(ULocale)

Call this method at the beginning of a NumberFormatter fluent chain in which the locale is known at the call site.

[Android.Runtime.Register("withLocale", "(Landroid/icu/util/ULocale;)Landroid/icu/number/LocalizedNumberFormatter;", "", ApiSince=30)]
public static Android.Icu.Number.LocalizedNumberFormatter? WithLocale (Android.Icu.Util.ULocale? locale);
[<Android.Runtime.Register("withLocale", "(Landroid/icu/util/ULocale;)Landroid/icu/number/LocalizedNumberFormatter;", "", ApiSince=30)>]
static member WithLocale : Android.Icu.Util.ULocale -> Android.Icu.Number.LocalizedNumberFormatter

Parameters

locale
ULocale

The locale from which to load formats and symbols for number formatting.

Returns

A LocalizedNumberFormatter, to be used for chaining.

Attributes

Remarks

Call this method at the beginning of a NumberFormatter fluent chain in which the locale is known at the call site.

Java documentation for android.icu.number.NumberFormatter.withLocale(android.icu.util.ULocale).

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

WithLocale(Locale)

Call this method at the beginning of a NumberFormatter fluent chain in which the locale is known at the call site.

[Android.Runtime.Register("withLocale", "(Ljava/util/Locale;)Landroid/icu/number/LocalizedNumberFormatter;", "", ApiSince=30)]
public static Android.Icu.Number.LocalizedNumberFormatter? WithLocale (Java.Util.Locale? locale);
[<Android.Runtime.Register("withLocale", "(Ljava/util/Locale;)Landroid/icu/number/LocalizedNumberFormatter;", "", ApiSince=30)>]
static member WithLocale : Java.Util.Locale -> Android.Icu.Number.LocalizedNumberFormatter

Parameters

locale
Locale

The locale from which to load formats and symbols for number formatting.

Returns

A LocalizedNumberFormatter, to be used for chaining.

Attributes

Remarks

Call this method at the beginning of a NumberFormatter fluent chain in which the locale is known at the call site.

Java documentation for android.icu.number.NumberFormatter.withLocale(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