次の方法で共有


DecimalFormat.ToPattern Method

Definition

Serializes this formatter object to a decimal format pattern string.

[Android.Runtime.Register("toPattern", "()Ljava/lang/String;", "GetToPatternHandler", ApiSince=24)]
public virtual string? ToPattern ();
[<Android.Runtime.Register("toPattern", "()Ljava/lang/String;", "GetToPatternHandler", ApiSince=24)>]
abstract member ToPattern : unit -> string
override this.ToPattern : unit -> string

Returns

A decimal format pattern string.

Attributes

Remarks

Serializes this formatter object to a decimal format pattern string. The result of this method is guaranteed to be <em>functionally</em> equivalent to the pattern string used to create this instance after incorporating values from the setter methods.

For more information on decimal format pattern strings, see UTS #35.

<strong>Important:</strong> Not all properties are capable of being encoded in a pattern string. See a list of properties in #applyPattern.

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

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