Language

MeasureFormat.FormatMeasures Method

Definition

Overloads

Name Description
FormatMeasures(Measure[])

Format a sequence of measures.

FormatMeasures(StringBuilder, FieldPosition, Measure[])

Formats a sequence of measures.

FormatMeasures(Measure[])

Format a sequence of measures.

[Android.Runtime.Register("formatMeasures", "([Landroid/icu/util/Measure;)Ljava/lang/String;", "", ApiSince=24)]
public string? FormatMeasures(params Android.Icu.Util.Measure[]? measures);
[<Android.Runtime.Register("formatMeasures", "([Landroid/icu/util/Measure;)Ljava/lang/String;", "", ApiSince=24)>]
member this.FormatMeasures : Android.Icu.Util.Measure[] -> string

Parameters

measures
Measure[]

a sequence of one or more measures.

Returns

the formatted string.

Attributes

Remarks

Format a sequence of measures. Uses the ListFormatter unit lists. So, for example, one could format “3 feet, 2 inches”. Zero values are formatted (eg, “3 feet, 0 inches”). It is the caller’s responsibility to have the appropriate values in appropriate order, and using the appropriate Number values. Typically the units should be in descending order, with all but the last Measure having integer values (eg, not “3.2 feet, 2 inches”).

Android reference for android.icu.text.MeasureFormat.formatMeasures.

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

FormatMeasures(StringBuilder, FieldPosition, Measure[])

Formats a sequence of measures.

[Android.Runtime.Register("formatMeasures", "(Ljava/lang/StringBuilder;Ljava/text/FieldPosition;[Landroid/icu/util/Measure;)Ljava/lang/StringBuilder;", "GetFormatMeasures_Ljava_lang_StringBuilder_Ljava_text_FieldPosition_arrayLandroid_icu_util_Measure_Handler", ApiSince=24)]
public virtual Java.Lang.StringBuilder? FormatMeasures(Java.Lang.StringBuilder? appendTo, Java.Text.FieldPosition? fpos, params Android.Icu.Util.Measure[]? measures);
[<Android.Runtime.Register("formatMeasures", "(Ljava/lang/StringBuilder;Ljava/text/FieldPosition;[Landroid/icu/util/Measure;)Ljava/lang/StringBuilder;", "GetFormatMeasures_Ljava_lang_StringBuilder_Ljava_text_FieldPosition_arrayLandroid_icu_util_Measure_Handler", ApiSince=24)>]
abstract member FormatMeasures : Java.Lang.StringBuilder * Java.Text.FieldPosition * Android.Icu.Util.Measure[] -> Java.Lang.StringBuilder
override this.FormatMeasures : Java.Lang.StringBuilder * Java.Text.FieldPosition * Android.Icu.Util.Measure[] -> Java.Lang.StringBuilder

Parameters

appendTo
StringBuilder

the formatted string appended here.

fpos
FieldPosition

Identifies a field in the formatted text.

measures
Measure[]

the measures to format.

Returns

appendTo.

Attributes

Remarks

Formats a sequence of measures. If the fieldPosition argument identifies a NumberFormat field, then its indices are set to the beginning and end of the first such field encountered. MeasureFormat itself does not supply any fields.

Android reference for android.icu.text.MeasureFormat.formatMeasures.

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