LocalizedNumberRangeFormatter.FormatRange Method
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
FormatRange(Number, Number) |
Format the given Numbers to a string using the settings specified in the NumberRangeFormatter fluent setting chain. |
FormatRange(Double, Double) |
Format the given doubles to a string using the settings specified in the NumberRangeFormatter fluent setting chain. |
FormatRange(Int32, Int32) |
Format the given integers to a string using the settings specified in the NumberRangeFormatter fluent setting chain. |
FormatRange(Number, Number)
Format the given Numbers to a string using the settings specified in the NumberRangeFormatter fluent setting chain.
[Android.Runtime.Register("formatRange", "(Ljava/lang/Number;Ljava/lang/Number;)Landroid/icu/number/FormattedNumberRange;", "GetFormatRange_Ljava_lang_Number_Ljava_lang_Number_Handler", ApiSince=30)]
public virtual Android.Icu.Number.FormattedNumberRange? FormatRange (Java.Lang.Number? first, Java.Lang.Number? second);
[<Android.Runtime.Register("formatRange", "(Ljava/lang/Number;Ljava/lang/Number;)Landroid/icu/number/FormattedNumberRange;", "GetFormatRange_Ljava_lang_Number_Ljava_lang_Number_Handler", ApiSince=30)>]
abstract member FormatRange : Java.Lang.Number * Java.Lang.Number -> Android.Icu.Number.FormattedNumberRange
override this.FormatRange : Java.Lang.Number * Java.Lang.Number -> Android.Icu.Number.FormattedNumberRange
Parameters
- first
- Number
The first number in the range, usually to the left in LTR locales.
- second
- Number
The second number in the range, usually to the right in LTR locales.
Returns
A FormattedNumberRange object; call .toString() to get the string.
- Attributes
Remarks
Format the given Numbers to a string using the settings specified in the NumberRangeFormatter fluent setting chain.
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
FormatRange(Double, Double)
Format the given doubles to a string using the settings specified in the NumberRangeFormatter fluent setting chain.
[Android.Runtime.Register("formatRange", "(DD)Landroid/icu/number/FormattedNumberRange;", "GetFormatRange_DDHandler", ApiSince=30)]
public virtual Android.Icu.Number.FormattedNumberRange? FormatRange (double first, double second);
[<Android.Runtime.Register("formatRange", "(DD)Landroid/icu/number/FormattedNumberRange;", "GetFormatRange_DDHandler", ApiSince=30)>]
abstract member FormatRange : double * double -> Android.Icu.Number.FormattedNumberRange
override this.FormatRange : double * double -> Android.Icu.Number.FormattedNumberRange
Parameters
- first
- Double
The first number in the range, usually to the left in LTR locales.
- second
- Double
The second number in the range, usually to the right in LTR locales.
Returns
A FormattedNumberRange object; call .toString() to get the string.
- Attributes
Remarks
Format the given doubles to a string using the settings specified in the NumberRangeFormatter fluent setting chain.
Java documentation for android.icu.number.LocalizedNumberRangeFormatter.formatRange(double, double)
.
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
FormatRange(Int32, Int32)
Format the given integers to a string using the settings specified in the NumberRangeFormatter fluent setting chain.
[Android.Runtime.Register("formatRange", "(II)Landroid/icu/number/FormattedNumberRange;", "GetFormatRange_IIHandler", ApiSince=30)]
public virtual Android.Icu.Number.FormattedNumberRange? FormatRange (int first, int second);
[<Android.Runtime.Register("formatRange", "(II)Landroid/icu/number/FormattedNumberRange;", "GetFormatRange_IIHandler", ApiSince=30)>]
abstract member FormatRange : int * int -> Android.Icu.Number.FormattedNumberRange
override this.FormatRange : int * int -> Android.Icu.Number.FormattedNumberRange
Parameters
- first
- Int32
The first number in the range, usually to the left in LTR locales.
- second
- Int32
The second number in the range, usually to the right in LTR locales.
Returns
A FormattedNumberRange object; call .toString() to get the string.
- Attributes
Remarks
Format the given integers to a string using the settings specified in the NumberRangeFormatter fluent setting chain.
Java documentation for android.icu.number.LocalizedNumberRangeFormatter.formatRange(int, 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.