Udostępnij za pośrednictwem


NumberFormat.GetInstance Method

Definition

Overloads

GetInstance(NumberFormatStyles)

<strong>NOTE:</strong> New users are strongly encouraged to use NumberFormatter instead of NumberFormat.

GetInstance(ULocale)

<strong>NOTE:</strong> New users are strongly encouraged to use NumberFormatter instead of NumberFormat.

GetInstance(Locale)

<strong>NOTE:</strong> New users are strongly encouraged to use NumberFormatter instead of NumberFormat.

GetInstance(ULocale, NumberFormatStyles)

<strong>NOTE:</strong> New users are strongly encouraged to use NumberFormatter instead of NumberFormat.

GetInstance(Locale, NumberFormatStyles)

<strong>NOTE:</strong> New users are strongly encouraged to use NumberFormatter instead of NumberFormat.

GetInstance(NumberFormatStyles)

<strong>NOTE:</strong> New users are strongly encouraged to use NumberFormatter instead of NumberFormat.

[Android.Runtime.Register("getInstance", "(I)Landroid/icu/text/NumberFormat;", "", ApiSince=24)]
public static Android.Icu.Text.NumberFormat? GetInstance (Android.Icu.Text.NumberFormatStyles style);
[<Android.Runtime.Register("getInstance", "(I)Landroid/icu/text/NumberFormat;", "", ApiSince=24)>]
static member GetInstance : Android.Icu.Text.NumberFormatStyles -> Android.Icu.Text.NumberFormat

Parameters

style
NumberFormatStyles

number format style

Returns

Attributes

Remarks

<strong>NOTE:</strong> New users are strongly encouraged to use NumberFormatter instead of NumberFormat. <hr> <strong>[icu]</strong> Returns a specific style number format for default FORMAT locale.

Java documentation for android.icu.text.NumberFormat.getInstance(int).

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

GetInstance(ULocale)

<strong>NOTE:</strong> New users are strongly encouraged to use NumberFormatter instead of NumberFormat.

[Android.Runtime.Register("getInstance", "(Landroid/icu/util/ULocale;)Landroid/icu/text/NumberFormat;", "", ApiSince=24)]
public static Android.Icu.Text.NumberFormat? GetInstance (Android.Icu.Util.ULocale? inLocale);
[<Android.Runtime.Register("getInstance", "(Landroid/icu/util/ULocale;)Landroid/icu/text/NumberFormat;", "", ApiSince=24)>]
static member GetInstance : Android.Icu.Util.ULocale -> Android.Icu.Text.NumberFormat

Parameters

inLocale
ULocale

Returns

Attributes

Remarks

<strong>NOTE:</strong> New users are strongly encouraged to use NumberFormatter instead of NumberFormat. <hr> <strong>[icu]</strong> Returns the default number format for the specified locale. The default format is one of the styles provided by the other factory methods: getNumberInstance, getCurrencyInstance or getPercentInstance. Exactly which one is locale-dependent.

Java documentation for android.icu.text.NumberFormat.getInstance(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

GetInstance(Locale)

<strong>NOTE:</strong> New users are strongly encouraged to use NumberFormatter instead of NumberFormat.

[Android.Runtime.Register("getInstance", "(Ljava/util/Locale;)Landroid/icu/text/NumberFormat;", "", ApiSince=24)]
public static Android.Icu.Text.NumberFormat? GetInstance (Java.Util.Locale? inLocale);
[<Android.Runtime.Register("getInstance", "(Ljava/util/Locale;)Landroid/icu/text/NumberFormat;", "", ApiSince=24)>]
static member GetInstance : Java.Util.Locale -> Android.Icu.Text.NumberFormat

Parameters

inLocale
Locale

Returns

Attributes

Remarks

<strong>NOTE:</strong> New users are strongly encouraged to use NumberFormatter instead of NumberFormat. <hr> Returns the default number format for the specified locale. The default format is one of the styles provided by the other factory methods: getNumberInstance, getCurrencyInstance or getPercentInstance. Exactly which one is locale-dependent.

Java documentation for android.icu.text.NumberFormat.getInstance(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

GetInstance(ULocale, NumberFormatStyles)

<strong>NOTE:</strong> New users are strongly encouraged to use NumberFormatter instead of NumberFormat.

[Android.Runtime.Register("getInstance", "(Landroid/icu/util/ULocale;I)Landroid/icu/text/NumberFormat;", "", ApiSince=24)]
public static Android.Icu.Text.NumberFormat? GetInstance (Android.Icu.Util.ULocale? desiredLocale, Android.Icu.Text.NumberFormatStyles choice);
[<Android.Runtime.Register("getInstance", "(Landroid/icu/util/ULocale;I)Landroid/icu/text/NumberFormat;", "", ApiSince=24)>]
static member GetInstance : Android.Icu.Util.ULocale * Android.Icu.Text.NumberFormatStyles -> Android.Icu.Text.NumberFormat

Parameters

desiredLocale
ULocale

the specific locale.

choice
NumberFormatStyles

number format style

Returns

Attributes

Remarks

<strong>NOTE:</strong> New users are strongly encouraged to use NumberFormatter instead of NumberFormat. <hr> Returns a specific style number format for a specific locale.

Java documentation for android.icu.text.NumberFormat.getInstance(android.icu.util.ULocale, int).

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

GetInstance(Locale, NumberFormatStyles)

<strong>NOTE:</strong> New users are strongly encouraged to use NumberFormatter instead of NumberFormat.

[Android.Runtime.Register("getInstance", "(Ljava/util/Locale;I)Landroid/icu/text/NumberFormat;", "", ApiSince=24)]
public static Android.Icu.Text.NumberFormat? GetInstance (Java.Util.Locale? inLocale, Android.Icu.Text.NumberFormatStyles style);
[<Android.Runtime.Register("getInstance", "(Ljava/util/Locale;I)Landroid/icu/text/NumberFormat;", "", ApiSince=24)>]
static member GetInstance : Java.Util.Locale * Android.Icu.Text.NumberFormatStyles -> Android.Icu.Text.NumberFormat

Parameters

inLocale
Locale

the specific locale.

style
NumberFormatStyles

number format style

Returns

Attributes

Remarks

<strong>NOTE:</strong> New users are strongly encouraged to use NumberFormatter instead of NumberFormat. <hr> <strong>[icu]</strong> Returns a specific style number format for a specific locale.

Java documentation for android.icu.text.NumberFormat.getInstance(java.util.Locale, int).

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