Java.Text.MessageFormat.Format Method
Converts the specified objects into a string which it appends to the specified string buffer using the pattern of this message format.

Syntax

[Android.Runtime.Register("format", "(Ljava/lang/Object;Ljava/lang/StringBuffer;Ljava/text/FieldPosition;)Ljava/lang/StringBuffer;", "")]
public override sealed Java.Lang.StringBuffer Format (Java.Lang.Object object, Java.Lang.StringBuffer buffer, FieldPosition field)

Parameters

object
the object to format, must be an array of Object.
buffer
the target string buffer to append the formatted message to.
field
on input: an optional alignment field; on output: the offsets of the alignment field in the formatted text.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.ClassCastExceptionif object is not an array of Object.

Remarks

Converts the specified objects into a string which it appends to the specified string buffer using the pattern of this message format.

If the field member of the specified FieldPosition is MessageFormat.Field.ARGUMENT, then the begin and end index of this field position is set to the location of the first occurrence of a message format argument. Otherwise, the FieldPosition is ignored.

Calling this method is equivalent to calling

java Example

 format((Object[])object, buffer, field)
 

[Android Documentation]

Requirements

Namespace: Java.Text
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1