Partager via


CurrencyPluralInfo.SetCurrencyPluralPattern(String, String) Method

Definition

Set currency plural patterns.

[Android.Runtime.Register("setCurrencyPluralPattern", "(Ljava/lang/String;Ljava/lang/String;)V", "GetSetCurrencyPluralPattern_Ljava_lang_String_Ljava_lang_String_Handler", ApiSince=24)]
public virtual void SetCurrencyPluralPattern (string? pluralCount, string? pattern);
[<Android.Runtime.Register("setCurrencyPluralPattern", "(Ljava/lang/String;Ljava/lang/String;)V", "GetSetCurrencyPluralPattern_Ljava_lang_String_Ljava_lang_String_Handler", ApiSince=24)>]
abstract member SetCurrencyPluralPattern : string * string -> unit
override this.SetCurrencyPluralPattern : string * string -> unit

Parameters

pluralCount
String

the plural count for which the currency pattern will be overridden.

pattern
String

the new currency plural pattern

Attributes

Remarks

Set currency plural patterns. These are initially set in the constructor based on the locale, and usually do not need to be changed.

The decimal digits part of the pattern cannot be specified via this method. All plural forms will use the same decimal pattern as set in the constructor of DecimalFormat. For example, you can't set "0.0" for plural "few" but "0.00" for plural "many".

Java documentation for android.icu.text.CurrencyPluralInfo.setCurrencyPluralPattern(java.lang.String, java.lang.String).

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