Partager via


DecimalFormat.PositiveSuffix Property

Definition

<strong>Affixes:</strong> Gets the positive suffix string currently being used to format numbers. -or- <strong>Affixes:</strong> Sets the string to append to positive numbers.

public virtual string? PositiveSuffix { [Android.Runtime.Register("getPositiveSuffix", "()Ljava/lang/String;", "GetGetPositiveSuffixHandler", ApiSince=24)] get; [Android.Runtime.Register("setPositiveSuffix", "(Ljava/lang/String;)V", "GetSetPositiveSuffix_Ljava_lang_String_Handler", ApiSince=24)] set; }
[<get: Android.Runtime.Register("getPositiveSuffix", "()Ljava/lang/String;", "GetGetPositiveSuffixHandler", ApiSince=24)>]
[<set: Android.Runtime.Register("setPositiveSuffix", "(Ljava/lang/String;)V", "GetSetPositiveSuffix_Ljava_lang_String_Handler", ApiSince=24)>]
member this.PositiveSuffix : string with get, set

Property Value

The string being appended to positive numbers.

Attributes

Remarks

Property getter documentation:

<strong>Affixes:</strong> Gets the positive suffix 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 #setPositiveSuffix, the string will be returned literally.

Java documentation for android.icu.text.DecimalFormat.getPositiveSuffix().

Property setter documentation:

<strong>Affixes:</strong> Sets the string to append to positive numbers. For example, if you set the value "#", then the number 123 will be formatted as "123#" in the locale <em>en-US</em>.

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.setPositiveSuffix(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