DecimalFormat.NegativePrefix Property
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.
<strong>Affixes:</strong> Gets the negative prefix string currently being used to format numbers. -or- <strong>Affixes:</strong> Sets the string to prepend to negative numbers.
public virtual string? NegativePrefix { [Android.Runtime.Register("getNegativePrefix", "()Ljava/lang/String;", "GetGetNegativePrefixHandler", ApiSince=24)] get; [Android.Runtime.Register("setNegativePrefix", "(Ljava/lang/String;)V", "GetSetNegativePrefix_Ljava_lang_String_Handler", ApiSince=24)] set; }
[<get: Android.Runtime.Register("getNegativePrefix", "()Ljava/lang/String;", "GetGetNegativePrefixHandler", ApiSince=24)>]
[<set: Android.Runtime.Register("setNegativePrefix", "(Ljava/lang/String;)V", "GetSetNegativePrefix_Ljava_lang_String_Handler", ApiSince=24)>]
member this.NegativePrefix : string with get, set
Property Value
The string being prepended to negative numbers.
- Attributes
Remarks
Property getter documentation:
<strong>Affixes:</strong> Gets the negative prefix string currently being used to format numbers.
If the affix was specified via the pattern, the string returned by this method will have locale symbols substituted in place of special characters according to the LDML specification. If the affix was specified via #setNegativePrefix
, the string will be returned literally.
Java documentation for android.icu.text.DecimalFormat.getNegativePrefix()
.
Property setter documentation:
<strong>Affixes:</strong> Sets the string to prepend to negative numbers. For example, if you set the value "#", then the number -123 will be formatted as "#123" in the locale <em>en-US</em> (overriding the implicit default '-' in the pattern).
Using this method overrides the affix specified via the pattern, and unlike the pattern, the string given to this method will be interpreted literally WITHOUT locale symbol substitutions.
Java documentation for android.icu.text.DecimalFormat.setNegativePrefix(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.