다음을 통해 공유


DecimalFormat.NegativeSuffix Property

Definition

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

public virtual string? NegativeSuffix { [Android.Runtime.Register("getNegativeSuffix", "()Ljava/lang/String;", "GetGetNegativeSuffixHandler", ApiSince=24)] get; [Android.Runtime.Register("setNegativeSuffix", "(Ljava/lang/String;)V", "GetSetNegativeSuffix_Ljava_lang_String_Handler", ApiSince=24)] set; }
[<get: Android.Runtime.Register("getNegativeSuffix", "()Ljava/lang/String;", "GetGetNegativeSuffixHandler", ApiSince=24)>]
[<set: Android.Runtime.Register("setNegativeSuffix", "(Ljava/lang/String;)V", "GetSetNegativeSuffix_Ljava_lang_String_Handler", ApiSince=24)>]
member this.NegativeSuffix : string with get, set

Property Value

The string being appended to negative numbers.

Attributes

Remarks

Property getter documentation:

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

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

Property setter documentation:

<strong>Affixes:</strong> Sets the string to append 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>.

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