PluralFormat Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
PluralFormat() |
Creates a new cardinal-number |
PluralFormat(ULocale, PluralRules+PluralType, String) | |
PluralFormat(IntPtr, JniHandleOwnership) | |
PluralFormat(Locale, PluralRules+PluralType) | |
PluralFormat(Locale, PluralRules) |
Creates a new cardinal-number |
PluralFormat(ULocale, String) |
Creates a new cardinal-number |
PluralFormat(ULocale, PluralRules+PluralType) | |
PluralFormat(ULocale, PluralRules, String) |
Creates a new cardinal-number |
PluralFormat(PluralRules, String) |
Creates a new cardinal-number |
PluralFormat(String) |
Creates a new cardinal-number |
PluralFormat(Locale) |
Creates a new cardinal-number |
PluralFormat(ULocale) |
Creates a new cardinal-number |
PluralFormat(PluralRules) |
Creates a new cardinal-number |
PluralFormat(ULocale, PluralRules) |
Creates a new cardinal-number |
PluralFormat()
Creates a new cardinal-number PluralFormat
for the default FORMAT
locale.
[Android.Runtime.Register(".ctor", "()V", "", ApiSince=24)]
public PluralFormat ();
- Attributes
Remarks
Creates a new cardinal-number PluralFormat
for the default FORMAT
locale. This locale will be used to get the set of plural rules and for standard number formatting.
Java documentation for android.icu.text.PluralFormat.PluralFormat()
.
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
PluralFormat(ULocale, PluralRules+PluralType, String)
[Android.Runtime.Register(".ctor", "(Landroid/icu/util/ULocale;Landroid/icu/text/PluralRules$PluralType;Ljava/lang/String;)V", "", ApiSince=24)]
public PluralFormat (Android.Icu.Util.ULocale? ulocale, Android.Icu.Text.PluralRules.PluralType? type, string? pattern);
[<Android.Runtime.Register(".ctor", "(Landroid/icu/util/ULocale;Landroid/icu/text/PluralRules$PluralType;Ljava/lang/String;)V", "", ApiSince=24)>]
new Android.Icu.Text.PluralFormat : Android.Icu.Util.ULocale * Android.Icu.Text.PluralRules.PluralType * string -> Android.Icu.Text.PluralFormat
Parameters
- ulocale
- ULocale
- pattern
- String
- Attributes
Remarks
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
PluralFormat(IntPtr, JniHandleOwnership)
protected PluralFormat (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Icu.Text.PluralFormat : nativeint * Android.Runtime.JniHandleOwnership -> Android.Icu.Text.PluralFormat
Parameters
- javaReference
-
IntPtr
nativeint
- transfer
- JniHandleOwnership
Remarks
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
PluralFormat(Locale, PluralRules+PluralType)
[Android.Runtime.Register(".ctor", "(Ljava/util/Locale;Landroid/icu/text/PluralRules$PluralType;)V", "", ApiSince=24)]
public PluralFormat (Java.Util.Locale? locale, Android.Icu.Text.PluralRules.PluralType? type);
[<Android.Runtime.Register(".ctor", "(Ljava/util/Locale;Landroid/icu/text/PluralRules$PluralType;)V", "", ApiSince=24)>]
new Android.Icu.Text.PluralFormat : Java.Util.Locale * Android.Icu.Text.PluralRules.PluralType -> Android.Icu.Text.PluralFormat
Parameters
- locale
- Locale
- Attributes
Remarks
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
PluralFormat(Locale, PluralRules)
Creates a new cardinal-number PluralFormat
for a given set of rules.
[Android.Runtime.Register(".ctor", "(Ljava/util/Locale;Landroid/icu/text/PluralRules;)V", "", ApiSince=24)]
public PluralFormat (Java.Util.Locale? locale, Android.Icu.Text.PluralRules? rules);
[<Android.Runtime.Register(".ctor", "(Ljava/util/Locale;Landroid/icu/text/PluralRules;)V", "", ApiSince=24)>]
new Android.Icu.Text.PluralFormat : Java.Util.Locale * Android.Icu.Text.PluralRules -> Android.Icu.Text.PluralFormat
Parameters
- locale
- Locale
the default number formatting will be done using this locale.
- rules
- PluralRules
defines the behavior of the PluralFormat
object.
- Attributes
Remarks
Creates a new cardinal-number PluralFormat
for a given set of rules. The standard number formatting will be done using the given 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
PluralFormat(ULocale, String)
Creates a new cardinal-number PluralFormat
for a given pattern string and
locale.
[Android.Runtime.Register(".ctor", "(Landroid/icu/util/ULocale;Ljava/lang/String;)V", "", ApiSince=24)]
public PluralFormat (Android.Icu.Util.ULocale? ulocale, string? pattern);
[<Android.Runtime.Register(".ctor", "(Landroid/icu/util/ULocale;Ljava/lang/String;)V", "", ApiSince=24)>]
new Android.Icu.Text.PluralFormat : Android.Icu.Util.ULocale * string -> Android.Icu.Text.PluralFormat
Parameters
- ulocale
- ULocale
the PluralFormat
will be configured with
rules for this locale. This locale will also be used for standard
number formatting.
- pattern
- String
the pattern for this PluralFormat
.
- Attributes
Remarks
Creates a new cardinal-number PluralFormat
for a given pattern string and locale. The locale will be used to get the set of plural rules and for standard number formatting.
Example code:{
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
PluralFormat(ULocale, PluralRules+PluralType)
[Android.Runtime.Register(".ctor", "(Landroid/icu/util/ULocale;Landroid/icu/text/PluralRules$PluralType;)V", "", ApiSince=24)]
public PluralFormat (Android.Icu.Util.ULocale? ulocale, Android.Icu.Text.PluralRules.PluralType? type);
[<Android.Runtime.Register(".ctor", "(Landroid/icu/util/ULocale;Landroid/icu/text/PluralRules$PluralType;)V", "", ApiSince=24)>]
new Android.Icu.Text.PluralFormat : Android.Icu.Util.ULocale * Android.Icu.Text.PluralRules.PluralType -> Android.Icu.Text.PluralFormat
Parameters
- ulocale
- ULocale
- Attributes
Remarks
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
PluralFormat(ULocale, PluralRules, String)
Creates a new cardinal-number PluralFormat
for a given set of rules, a
pattern and a locale.
[Android.Runtime.Register(".ctor", "(Landroid/icu/util/ULocale;Landroid/icu/text/PluralRules;Ljava/lang/String;)V", "", ApiSince=24)]
public PluralFormat (Android.Icu.Util.ULocale? ulocale, Android.Icu.Text.PluralRules? rules, string? pattern);
[<Android.Runtime.Register(".ctor", "(Landroid/icu/util/ULocale;Landroid/icu/text/PluralRules;Ljava/lang/String;)V", "", ApiSince=24)>]
new Android.Icu.Text.PluralFormat : Android.Icu.Util.ULocale * Android.Icu.Text.PluralRules * string -> Android.Icu.Text.PluralFormat
Parameters
- ulocale
- ULocale
the PluralFormat
will be configured with
rules for this locale. This locale will also be used for standard
number formatting.
- rules
- PluralRules
defines the behavior of the PluralFormat
object.
- pattern
- String
the pattern for this PluralFormat
.
- Attributes
Remarks
Creates a new cardinal-number PluralFormat
for a given set of rules, a pattern and a 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
PluralFormat(PluralRules, String)
Creates a new cardinal-number PluralFormat
for a given set of rules and a
pattern.
[Android.Runtime.Register(".ctor", "(Landroid/icu/text/PluralRules;Ljava/lang/String;)V", "", ApiSince=24)]
public PluralFormat (Android.Icu.Text.PluralRules? rules, string? pattern);
[<Android.Runtime.Register(".ctor", "(Landroid/icu/text/PluralRules;Ljava/lang/String;)V", "", ApiSince=24)>]
new Android.Icu.Text.PluralFormat : Android.Icu.Text.PluralRules * string -> Android.Icu.Text.PluralFormat
Parameters
- rules
- PluralRules
defines the behavior of the PluralFormat
object.
- pattern
- String
the pattern for this PluralFormat
.
- Attributes
Remarks
Creates a new cardinal-number PluralFormat
for a given set of rules and a pattern. The standard number formatting will be done using the default FORMAT
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
PluralFormat(String)
Creates a new cardinal-number PluralFormat
for a given pattern string.
[Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "", ApiSince=24)]
public PluralFormat (string? pattern);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "", ApiSince=24)>]
new Android.Icu.Text.PluralFormat : string -> Android.Icu.Text.PluralFormat
Parameters
- pattern
- String
the pattern for this PluralFormat
.
- Attributes
Remarks
Creates a new cardinal-number PluralFormat
for a given pattern string. The default FORMAT
locale will be used to get the set of plural rules and for standard number formatting.
Java documentation for android.icu.text.PluralFormat.PluralFormat(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
PluralFormat(Locale)
Creates a new cardinal-number PluralFormat
for a given
java.util.Locale
.
[Android.Runtime.Register(".ctor", "(Ljava/util/Locale;)V", "", ApiSince=24)]
public PluralFormat (Java.Util.Locale? locale);
[<Android.Runtime.Register(".ctor", "(Ljava/util/Locale;)V", "", ApiSince=24)>]
new Android.Icu.Text.PluralFormat : Java.Util.Locale -> Android.Icu.Text.PluralFormat
Parameters
- locale
- Locale
the PluralFormat
will be configured with
rules for this locale. This locale will also be used for standard
number formatting.
- Attributes
Remarks
Creates a new cardinal-number PluralFormat
for a given java.util.Locale
.
Java documentation for android.icu.text.PluralFormat.PluralFormat(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
PluralFormat(ULocale)
Creates a new cardinal-number PluralFormat
for a given locale.
[Android.Runtime.Register(".ctor", "(Landroid/icu/util/ULocale;)V", "", ApiSince=24)]
public PluralFormat (Android.Icu.Util.ULocale? ulocale);
[<Android.Runtime.Register(".ctor", "(Landroid/icu/util/ULocale;)V", "", ApiSince=24)>]
new Android.Icu.Text.PluralFormat : Android.Icu.Util.ULocale -> Android.Icu.Text.PluralFormat
Parameters
- ulocale
- ULocale
the PluralFormat
will be configured with
rules for this locale. This locale will also be used for standard
number formatting.
- Attributes
Remarks
Creates a new cardinal-number PluralFormat
for a given locale.
Java documentation for android.icu.text.PluralFormat.PluralFormat(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
PluralFormat(PluralRules)
Creates a new cardinal-number PluralFormat
for a given set of rules.
[Android.Runtime.Register(".ctor", "(Landroid/icu/text/PluralRules;)V", "", ApiSince=24)]
public PluralFormat (Android.Icu.Text.PluralRules? rules);
[<Android.Runtime.Register(".ctor", "(Landroid/icu/text/PluralRules;)V", "", ApiSince=24)>]
new Android.Icu.Text.PluralFormat : Android.Icu.Text.PluralRules -> Android.Icu.Text.PluralFormat
Parameters
- rules
- PluralRules
defines the behavior of the PluralFormat
object.
- Attributes
Remarks
Creates a new cardinal-number PluralFormat
for a given set of rules. The standard number formatting will be done using the default FORMAT
locale.
Java documentation for android.icu.text.PluralFormat.PluralFormat(android.icu.text.PluralRules)
.
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
PluralFormat(ULocale, PluralRules)
Creates a new cardinal-number PluralFormat
for a given set of rules.
[Android.Runtime.Register(".ctor", "(Landroid/icu/util/ULocale;Landroid/icu/text/PluralRules;)V", "", ApiSince=24)]
public PluralFormat (Android.Icu.Util.ULocale? ulocale, Android.Icu.Text.PluralRules? rules);
[<Android.Runtime.Register(".ctor", "(Landroid/icu/util/ULocale;Landroid/icu/text/PluralRules;)V", "", ApiSince=24)>]
new Android.Icu.Text.PluralFormat : Android.Icu.Util.ULocale * Android.Icu.Text.PluralRules -> Android.Icu.Text.PluralFormat
Parameters
- ulocale
- ULocale
the default number formatting will be done using this locale.
- rules
- PluralRules
defines the behavior of the PluralFormat
object.
- Attributes
Remarks
Creates a new cardinal-number PluralFormat
for a given set of rules. The standard number formatting will be done using the given 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.