Partager via


ScientificNumberFormatter.GetMarkupInstance Method

Definition

Overloads

GetMarkupInstance(DecimalFormat, String, String)

Gets a ScientificNumberFormatter instance that uses markup for exponents.

GetMarkupInstance(ULocale, String, String)

Gets a ScientificNumberFormatter instance that uses markup for exponents for this locale.

GetMarkupInstance(DecimalFormat, String, String)

Gets a ScientificNumberFormatter instance that uses markup for exponents.

[Android.Runtime.Register("getMarkupInstance", "(Landroid/icu/text/DecimalFormat;Ljava/lang/String;Ljava/lang/String;)Landroid/icu/text/ScientificNumberFormatter;", "", ApiSince=26)]
public static Android.Icu.Text.ScientificNumberFormatter? GetMarkupInstance (Android.Icu.Text.DecimalFormat? df, string? beginMarkup, string? endMarkup);
[<Android.Runtime.Register("getMarkupInstance", "(Landroid/icu/text/DecimalFormat;Ljava/lang/String;Ljava/lang/String;)Landroid/icu/text/ScientificNumberFormatter;", "", ApiSince=26)>]
static member GetMarkupInstance : Android.Icu.Text.DecimalFormat * string * string -> Android.Icu.Text.ScientificNumberFormatter

Parameters

df
DecimalFormat

The DecimalFormat must be configured for scientific notation. Caller may safely change df after this call as this method clones it when creating the ScientificNumberFormatter.

beginMarkup
String

the markup to start superscript e.g <sup>

endMarkup
String

the markup to end superscript e.g </sup>

Returns

The ScientificNumberFormatter instance.

Attributes

Remarks

Gets a ScientificNumberFormatter instance that uses markup for exponents.

Java documentation for android.icu.text.ScientificNumberFormatter.getMarkupInstance(android.icu.text.DecimalFormat, java.lang.String, 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

GetMarkupInstance(ULocale, String, String)

Gets a ScientificNumberFormatter instance that uses markup for exponents for this locale.

[Android.Runtime.Register("getMarkupInstance", "(Landroid/icu/util/ULocale;Ljava/lang/String;Ljava/lang/String;)Landroid/icu/text/ScientificNumberFormatter;", "", ApiSince=26)]
public static Android.Icu.Text.ScientificNumberFormatter? GetMarkupInstance (Android.Icu.Util.ULocale? locale, string? beginMarkup, string? endMarkup);
[<Android.Runtime.Register("getMarkupInstance", "(Landroid/icu/util/ULocale;Ljava/lang/String;Ljava/lang/String;)Landroid/icu/text/ScientificNumberFormatter;", "", ApiSince=26)>]
static member GetMarkupInstance : Android.Icu.Util.ULocale * string * string -> Android.Icu.Text.ScientificNumberFormatter

Parameters

locale
ULocale

The locale

beginMarkup
String

the markup to start superscript e.g <sup>

endMarkup
String

the markup to end superscript e.g </sup>

Returns

The ScientificNumberFormatter instance.

Attributes

Remarks

Gets a ScientificNumberFormatter instance that uses markup for exponents for this locale.

Java documentation for android.icu.text.ScientificNumberFormatter.getMarkupInstance(android.icu.util.ULocale, java.lang.String, 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