NumberFormatterSettings.IntegerWidth(IntegerWidth) Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Specifica il numero minimo e massimo di cifre di cui eseguire il rendering prima del separatore decimale.
[Android.Runtime.Register("integerWidth", "(Landroid/icu/number/IntegerWidth;)Landroid/icu/number/NumberFormatterSettings;", "GetIntegerWidth_Landroid_icu_number_IntegerWidth_Handler", ApiSince=30)]
public virtual Java.Lang.Object? IntegerWidth(Android.Icu.Number.IntegerWidth? style);
[<Android.Runtime.Register("integerWidth", "(Landroid/icu/number/IntegerWidth;)Landroid/icu/number/NumberFormatterSettings;", "GetIntegerWidth_Landroid_icu_number_IntegerWidth_Handler", ApiSince=30)>]
abstract member IntegerWidth : Android.Icu.Number.IntegerWidth -> Java.Lang.Object
override this.IntegerWidth : Android.Icu.Number.IntegerWidth -> Java.Lang.Object
Parametri
- style
- IntegerWidth
Larghezza integer da utilizzare.
Valori restituiti
Catena fluente.
- Attributi
Commenti
Specifica il numero minimo e massimo di cifre di cui eseguire il rendering prima del separatore decimale.
<ul><li>Zero minimum integer digits: ".08" <li>One minimum integer digit: "0.08" <li>Two minimum integer digits: "00.08" </ul>
Passare questo metodo il valore restituito di IntegerWidth#zeroFillTo(int). Per esempio:
NumberFormatter.with().integerWidth(IntegerWidth.zeroFillTo(2))
Il valore predefinito è avere una cifra intera minima.
per android.icu.number.NumberFormatterSettings.integerWidth(android.icu.number.IntegerWidth).
Le parti di questa pagina sono modifiche basate sul lavoro creato e condiviso dalla e usati in base ai termini descritti in Creative License 2.5 Attribution License.