DecimalFormatSymbols.GetPatternForCurrencySpacing Method
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>[icu]</strong> Returns the desired currency spacing value.
[Android.Runtime.Register("getPatternForCurrencySpacing", "(IZ)Ljava/lang/String;", "GetGetPatternForCurrencySpacing_IZHandler", ApiSince=24)]
public virtual string? GetPatternForCurrencySpacing (Android.Icu.Text.CurrencySpacing itemType, bool beforeCurrency);
[<Android.Runtime.Register("getPatternForCurrencySpacing", "(IZ)Ljava/lang/String;", "GetGetPatternForCurrencySpacing_IZHandler", ApiSince=24)>]
abstract member GetPatternForCurrencySpacing : Android.Icu.Text.CurrencySpacing * bool -> string
override this.GetPatternForCurrencySpacing : Android.Icu.Text.CurrencySpacing * bool -> string
Parameters
- itemType
- CurrencySpacing
one of CURRENCY_SPC_CURRENCY_MATCH, CURRENCY_SPC_SURROUNDING_MATCH or CURRENCY_SPC_INSERT
- beforeCurrency
- Boolean
true to get the beforeCurrency
values, false
to get the afterCurrency
values.
Returns
the value, or null.
- Attributes
Remarks
<strong>[icu]</strong> Returns the desired currency spacing value. Original values come from ICU's CLDR data based on the locale provided during construction, and can be null. These values govern what and when text is inserted between a currency code/name/symbol and the currency amount when formatting money.
For more information, see UTS#35 section 5.10.2.
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.