DecimalFormat.ApplyPattern(String) 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.
Parses the given pattern string and overwrites the settings specified in the pattern string.
[Android.Runtime.Register("applyPattern", "(Ljava/lang/String;)V", "GetApplyPattern_Ljava_lang_String_Handler", ApiSince=24)]
public virtual void ApplyPattern (string? pattern);
[<Android.Runtime.Register("applyPattern", "(Ljava/lang/String;)V", "GetApplyPattern_Ljava_lang_String_Handler", ApiSince=24)>]
abstract member ApplyPattern : string -> unit
override this.ApplyPattern : string -> unit
Parameters
- pattern
- String
- Attributes
Remarks
Parses the given pattern string and overwrites the settings specified in the pattern string. The properties corresponding to the following setters are overwritten, either with their default values or with the value specified in the pattern string:
<ol> <li>#setDecimalSeparatorAlwaysShown
<li>#setExponentSignAlwaysShown
<li>#setFormatWidth
<li>#setGroupingSize
<li>#setMultiplier
(percent/permille) <li>#setMaximumFractionDigits
<li>#setMaximumIntegerDigits
<li>#setMaximumSignificantDigits
<li>#setMinimumExponentDigits
<li>#setMinimumFractionDigits
<li>#setMinimumIntegerDigits
<li>#setMinimumSignificantDigits
<li>#setPadPosition
<li>#setPadCharacter
<li>#setRoundingIncrement
<li>#setSecondaryGroupingSize
</ol>
All other settings remain untouched.
For more information on pattern strings, see UTS #35.
Java documentation for android.icu.text.DecimalFormat.applyPattern(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.