LocalizedNumberFormatter.ToFormat 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.
Creates a representation of this LocalizedNumberFormat as a java.text.Format
, enabling the
use of this number formatter with APIs that need an object of that type, such as MessageFormat.
[Android.Runtime.Register("toFormat", "()Ljava/text/Format;", "GetToFormatHandler", ApiSince=30)]
public virtual Java.Text._Format? ToFormat ();
[<Android.Runtime.Register("toFormat", "()Ljava/text/Format;", "GetToFormatHandler", ApiSince=30)>]
abstract member ToFormat : unit -> Java.Text._Format
override this.ToFormat : unit -> Java.Text._Format
Returns
A Format wrapping this LocalizedNumberFormatter.
- Attributes
Remarks
Creates a representation of this LocalizedNumberFormat as a java.text.Format
, enabling the use of this number formatter with APIs that need an object of that type, such as MessageFormat.
This API is not intended to be used other than for enabling API compatibility. The #format
methods should normally be used when formatting numbers, not the Format object returned by this method.
Java documentation for android.icu.number.LocalizedNumberFormatter.toFormat()
.
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.