次の方法で共有


NumberFormat.Currency Property

Definition

Gets the currency used by this number format when formatting currency values. -or- Sets the currency used by this number format when formatting currency values.

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 by this number format, or null

Attributes

Exceptions

Remarks

Property getter documentation:

Gets the currency used by this number format when formatting currency values. The initial value is derived in a locale dependent way. The returned value may be null if no valid currency could be determined and no currency has been set using #setCurrency(java.util.Currency) setCurrency.

The default implementation throws UnsupportedOperationException.

Added in 1.4.

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

Property setter documentation:

Sets the currency used by this number format when formatting currency values. This does not update the minimum or maximum number of fraction digits used by the number format.

The default implementation throws UnsupportedOperationException.

Added in 1.4.

Java documentation for java.text.NumberFormat.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