ScientificNumberFormatter.GetMarkupInstance 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
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
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.
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.
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.