Condividi tramite


Formatter.Format Method

Definition

Overloads

Format(String, Object[])

Writes a formatted string to this object's destination using the specified format string and arguments.

Format(Locale, String, Object[])

Writes a formatted string to this object's destination using the specified format string and arguments.

Format(String, Object[])

Writes a formatted string to this object's destination using the specified format string and arguments.

[Android.Runtime.Register("format", "(Ljava/lang/String;[Ljava/lang/Object;)Ljava/util/Formatter;", "")]
public Java.Util.Formatter? Format (string? format, params Java.Lang.Object[]? args);
[<Android.Runtime.Register("format", "(Ljava/lang/String;[Ljava/lang/Object;)Ljava/util/Formatter;", "")>]
member this.Format : string * Java.Lang.Object[] -> Java.Util.Formatter

Parameters

format
String

A format string as described in <a href="#syntax">Format string syntax</a>.

args
Object[]

Arguments referenced by the format specifiers in the format string. If there are more arguments than format specifiers, the extra arguments are ignored. The maximum number of arguments is limited by the maximum dimension of a Java array as defined by <cite>The Java&trade; Virtual Machine Specification</cite>.

Returns

This formatter

Attributes

Remarks

Java documentation for java.util.Formatter.format(java.lang.String, java.lang.Object).

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

Format(Locale, String, Object[])

Writes a formatted string to this object's destination using the specified format string and arguments.

[Android.Runtime.Register("format", "(Ljava/util/Locale;Ljava/lang/String;[Ljava/lang/Object;)Ljava/util/Formatter;", "")]
public Java.Util.Formatter? Format (Java.Util.Locale? l, string? format, params Java.Lang.Object[]? args);
[<Android.Runtime.Register("format", "(Ljava/util/Locale;Ljava/lang/String;[Ljava/lang/Object;)Ljava/util/Formatter;", "")>]
member this.Format : Java.Util.Locale * string * Java.Lang.Object[] -> Java.Util.Formatter

Parameters

l
Locale
format
String

A format string as described in <a href="#syntax">Format string syntax</a>.

args
Object[]

Arguments referenced by the format specifiers in the format string. If there are more arguments than format specifiers, the extra arguments are ignored. The maximum number of arguments is limited by the maximum dimension of a Java array as defined by <cite>The Java&trade; Virtual Machine Specification</cite>.

Returns

This formatter

Attributes

Remarks

Java documentation for java.util.Formatter.format(java.lang.String, java.lang.Object).

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