MeasureFormat.FormatMeasurePerUnit 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.
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."
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.