MessageFormat Class

Definition

Produces concatenated messages in language-neutral way.

[Android.Runtime.Register("java/text/MessageFormat", DoNotGenerateAcw=true)]
public class MessageFormat : Java.Text._Format
[<Android.Runtime.Register("java/text/MessageFormat", DoNotGenerateAcw=true)>]
type MessageFormat = class
    inherit _Format
Inheritance
MessageFormat
Attributes

Remarks

Android platform documentation

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.

Constructors

MessageFormat(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

MessageFormat(String)

Constructs a MessageFormat for the default java.util.Locale.Category#FORMAT FORMAT locale and the specified pattern.

MessageFormat(String, Locale)

Constructs a MessageFormat for the specified locale and pattern.

Properties

Class

Returns the runtime class of this Object.

(Inherited from Object)
Handle

The handle to the underlying Android instance.

(Inherited from Object)
JniIdentityHashCode (Inherited from Object)
JniPeerMembers
Locale

Gets the locale that's used when creating or comparing subformats. -or- Sets the locale to be used when creating or comparing subformats.

PeerReference (Inherited from Object)
ThresholdClass

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

ThresholdType

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Methods

ApplyPattern(String)

Sets the pattern used by this message format.

Clone()

Creates and returns a copy of this object.

(Inherited from _Format)
Dispose() (Inherited from Object)
Dispose(Boolean) (Inherited from Object)
Equals(Object)

Indicates whether some other object is "equal to" this one.

(Inherited from Object)
Format(Object)

Formats an object to produce a string.

(Inherited from _Format)
Format(Object, StringBuffer, FieldPosition)

Formats an array of objects and appends the <code>MessageFormat</code>'s pattern, with format elements replaced by the formatted objects, to the provided <code>StringBuffer</code>.

Format(Object[], StringBuffer, FieldPosition)

Formats an array of objects and appends the <code>MessageFormat</code>'s pattern, with format elements replaced by the formatted objects, to the provided <code>StringBuffer</code>.

Format(String, Object[])

Formats an array of objects and appends the <code>MessageFormat</code>'s pattern, with format elements replaced by the formatted objects, to the provided <code>StringBuffer</code>.

FormatToCharacterIterator(Object)

Formats an Object producing an <code>AttributedCharacterIterator</code>.

(Inherited from _Format)
GetFormats()

Gets the formats used for the format elements in the previously set pattern string.

GetFormatsByArgumentIndex()

Gets the formats used for the values passed into <code>format</code> methods or returned from <code>parse</code> methods.

GetHashCode()

Returns a hash code value for the object.

(Inherited from Object)
JavaFinalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

(Inherited from Object)
Notify()

Wakes up a single thread that is waiting on this object's monitor.

(Inherited from Object)
NotifyAll()

Wakes up all threads that are waiting on this object's monitor.

(Inherited from Object)
Parse(String)

Parses text from the beginning of the given string to produce an object array.

Parse(String, ParsePosition)

Parses text from the beginning of the given string to produce an object array.

ParseObject(String)

Parses text from the beginning of the given string to produce an object.

(Inherited from _Format)
ParseObject(String, ParsePosition)

Parses text from a string to produce an object array.

SetFormat(Int32, _Format)

Sets the format to use for the format element with the given format element index within the previously set pattern string.

SetFormatByArgumentIndex(Int32, _Format)

Sets the format to use for the format elements within the previously set pattern string that use the given argument index.

SetFormats(_Format[])

Sets the formats to use for the format elements in the previously set pattern string.

SetFormatsByArgumentIndex(_Format[])

Sets the formats to use for the values passed into <code>format</code> methods or returned from <code>parse</code> methods.

SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
ToArray<T>() (Inherited from Object)
ToPattern()

Returns a pattern representing the current state of the message format.

ToString()

Returns a string representation of the object.

(Inherited from Object)
UnregisterFromRuntime() (Inherited from Object)
Wait()

Causes the current thread to wait until another thread invokes the java.lang.Object#notify() method or the java.lang.Object#notifyAll() method for this object.

(Inherited from Object)
Wait(Int64)

Causes the current thread to wait until either another thread invokes the java.lang.Object#notify() method or the java.lang.Object#notifyAll() method for this object, or a specified amount of time has elapsed.

(Inherited from Object)
Wait(Int64, Int32)

Causes the current thread to wait until another thread invokes the java.lang.Object#notify() method or the java.lang.Object#notifyAll() method for this object, or some other thread interrupts the current thread, or a certain amount of real time has elapsed.

(Inherited from Object)

Explicit Interface Implementations

IJavaPeerable.Disposed() (Inherited from Object)
IJavaPeerable.DisposeUnlessReferenced() (Inherited from Object)
IJavaPeerable.Finalized() (Inherited from Object)
IJavaPeerable.JniManagedPeerState (Inherited from Object)
IJavaPeerable.SetJniIdentityHashCode(Int32) (Inherited from Object)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) (Inherited from Object)
IJavaPeerable.SetPeerReference(JniObjectReference) (Inherited from Object)

Extension Methods

JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable)

Applies to