Partager via


MeasureFormat.FormatMeasurePerUnit Method

Definition

Formats a single measure per unit.

[Android.Runtime.Register("formatMeasurePerUnit", "(Landroid/icu/util/Measure;Landroid/icu/util/MeasureUnit;Ljava/lang/StringBuilder;Ljava/text/FieldPosition;)Ljava/lang/StringBuilder;", "GetFormatMeasurePerUnit_Landroid_icu_util_Measure_Landroid_icu_util_MeasureUnit_Ljava_lang_StringBuilder_Ljava_text_FieldPosition_Handler", ApiSince=26)]
public virtual Java.Lang.StringBuilder? FormatMeasurePerUnit (Android.Icu.Util.Measure? measure, Android.Icu.Util.MeasureUnit? perUnit, Java.Lang.StringBuilder? appendTo, Java.Text.FieldPosition? pos);
[<Android.Runtime.Register("formatMeasurePerUnit", "(Landroid/icu/util/Measure;Landroid/icu/util/MeasureUnit;Ljava/lang/StringBuilder;Ljava/text/FieldPosition;)Ljava/lang/StringBuilder;", "GetFormatMeasurePerUnit_Landroid_icu_util_Measure_Landroid_icu_util_MeasureUnit_Ljava_lang_StringBuilder_Ljava_text_FieldPosition_Handler", ApiSince=26)>]
abstract member FormatMeasurePerUnit : Android.Icu.Util.Measure * Android.Icu.Util.MeasureUnit * Java.Lang.StringBuilder * Java.Text.FieldPosition -> Java.Lang.StringBuilder
override this.FormatMeasurePerUnit : Android.Icu.Util.Measure * Android.Icu.Util.MeasureUnit * Java.Lang.StringBuilder * Java.Text.FieldPosition -> Java.Lang.StringBuilder

Parameters

measure
Measure

the measure object. In above example, 3.5 meters.

perUnit
MeasureUnit

the per unit. In above example, it is MeasureUnit.SECOND

appendTo
StringBuilder

formatted string appended here.

pos
FieldPosition

The field position.

Returns

appendTo.

Attributes

Remarks

Formats a single measure per unit.

An example of such a formatted string is "3.5 meters per second."

Java documentation for android.icu.text.MeasureFormat.formatMeasurePerUnit(android.icu.util.Measure, android.icu.util.MeasureUnit, java.lang.StringBuilder, java.text.FieldPosition).

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