DecimalFormat.PadPosition Property
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 position used for padding. -or- <strong>[icu]</strong> <strong>Padding:</strong> Sets the position where to insert the pad character when
narrower than the width specified in #setFormatWidth
.
public virtual int PadPosition { [Android.Runtime.Register("getPadPosition", "()I", "GetGetPadPositionHandler", ApiSince=24)] get; [Android.Runtime.Register("setPadPosition", "(I)V", "GetSetPadPosition_IHandler", ApiSince=24)] set; }
[<get: Android.Runtime.Register("getPadPosition", "()I", "GetGetPadPositionHandler", ApiSince=24)>]
[<set: Android.Runtime.Register("setPadPosition", "(I)V", "GetSetPadPosition_IHandler", ApiSince=24)>]
member this.PadPosition : int with get, set
Property Value
- Attributes
Remarks
Property getter documentation:
<strong>[icu]</strong> Returns the position used for padding.
Java documentation for android.icu.text.DecimalFormat.getPadPosition()
.
Property setter documentation:
<strong>[icu]</strong> <strong>Padding:</strong> Sets the position where to insert the pad character when narrower than the width specified in #setFormatWidth
. For example, consider the pattern "P123S" with padding width 8 and padding char "*". The four positions are:
<ul> <li>DecimalFormat#PAD_BEFORE_PREFIX
⇒ "***P123S" <li>DecimalFormat#PAD_AFTER_PREFIX
⇒ "P***123S" <li>DecimalFormat#PAD_BEFORE_SUFFIX
⇒ "P123***S" <li>DecimalFormat#PAD_AFTER_SUFFIX
⇒ "P123S***" </ul>
Java documentation for android.icu.text.DecimalFormat.setPadPosition(int)
.
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.