다음을 통해 공유


DecimalFormat.PadCharacter Property

Definition

<strong>[icu]</strong> Returns the character used for padding. -or- <strong>[icu]</strong> <strong>Padding:</strong> Sets the character used to pad numbers that are narrower than the width specified in #setFormatWidth.

public virtual char PadCharacter { [Android.Runtime.Register("getPadCharacter", "()C", "GetGetPadCharacterHandler", ApiSince=24)] get; [Android.Runtime.Register("setPadCharacter", "(C)V", "GetSetPadCharacter_CHandler", ApiSince=24)] set; }
[<get: Android.Runtime.Register("getPadCharacter", "()C", "GetGetPadCharacterHandler", ApiSince=24)>]
[<set: Android.Runtime.Register("setPadCharacter", "(C)V", "GetSetPadCharacter_CHandler", ApiSince=24)>]
member this.PadCharacter : char with get, set

Property Value

Attributes

Remarks

Property getter documentation:

<strong>[icu]</strong> Returns the character used for padding.

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

Property setter documentation:

<strong>[icu]</strong> <strong>Padding:</strong> Sets the character used to pad numbers that are narrower than the width specified in #setFormatWidth.

In the pattern string, the padding character is the token that follows '*' before or after the prefix or suffix.

Java documentation for android.icu.text.DecimalFormat.setPadCharacter(char).

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