다음을 통해 공유


DecimalFormatSymbols.Currency Property

Definition

Gets the currency of these DecimalFormatSymbols. -or- Sets the currency of these DecimalFormatSymbols.

public virtual Java.Util.Currency? Currency { [Android.Runtime.Register("getCurrency", "()Ljava/util/Currency;", "GetGetCurrencyHandler")] get; [Android.Runtime.Register("setCurrency", "(Ljava/util/Currency;)V", "GetSetCurrency_Ljava_util_Currency_Handler")] set; }
[<get: Android.Runtime.Register("getCurrency", "()Ljava/util/Currency;", "GetGetCurrencyHandler")>]
[<set: Android.Runtime.Register("setCurrency", "(Ljava/util/Currency;)V", "GetSetCurrency_Ljava_util_Currency_Handler")>]
member this.Currency : Java.Util.Currency with get, set

Property Value

the currency used, or null

Attributes

Exceptions

if currency is null.

Remarks

Property getter documentation:

Gets the currency of these DecimalFormatSymbols. May be null if the currency symbol attribute was previously set to a value that's not a valid ISO 4217 currency code.

Added in 1.4.

Java documentation for java.text.DecimalFormatSymbols.getCurrency().

Property setter documentation:

Sets the currency of these DecimalFormatSymbols. This also sets the currency symbol attribute to the currency's symbol in the DecimalFormatSymbols' locale, and the international currency symbol attribute to the currency's ISO 4217 currency code.

Added in 1.4.

Java documentation for java.text.DecimalFormatSymbols.setCurrency(java.util.Currency).

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

See also