MessageFormat Constructors
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.
Overloads
MessageFormat(String) |
Constructs a MessageFormat for the default |
MessageFormat(IntPtr, JniHandleOwnership) | |
MessageFormat(String, ULocale) |
Constructs a MessageFormat for the specified locale and pattern. |
MessageFormat(String, Locale) |
Constructs a MessageFormat for the specified locale and pattern. |
MessageFormat(String)
Constructs a MessageFormat for the default FORMAT
locale and the
specified pattern.
[Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "", ApiSince=24)]
public MessageFormat (string? pattern);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "", ApiSince=24)>]
new Android.Icu.Text.MessageFormat : string -> Android.Icu.Text.MessageFormat
Parameters
- pattern
- String
the pattern for this message format
- Attributes
Remarks
Constructs a MessageFormat for the default FORMAT
locale and the specified pattern. Sets the locale and calls applyPattern(pattern).
Java documentation for android.icu.text.MessageFormat.MessageFormat(java.lang.String)
.
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
MessageFormat(IntPtr, JniHandleOwnership)
protected MessageFormat (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Icu.Text.MessageFormat : nativeint * Android.Runtime.JniHandleOwnership -> Android.Icu.Text.MessageFormat
Parameters
- javaReference
-
IntPtr
nativeint
- transfer
- JniHandleOwnership
Remarks
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
MessageFormat(String, ULocale)
Constructs a MessageFormat for the specified locale and pattern.
[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Landroid/icu/util/ULocale;)V", "", ApiSince=24)]
public MessageFormat (string? pattern, Android.Icu.Util.ULocale? locale);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Landroid/icu/util/ULocale;)V", "", ApiSince=24)>]
new Android.Icu.Text.MessageFormat : string * Android.Icu.Util.ULocale -> Android.Icu.Text.MessageFormat
Parameters
- pattern
- String
the pattern for this message format
- locale
- ULocale
the locale for this message format
- Attributes
Remarks
Constructs a MessageFormat for the specified locale and pattern. Sets the locale and calls applyPattern(pattern).
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
MessageFormat(String, Locale)
Constructs a MessageFormat for the specified locale and pattern.
[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/util/Locale;)V", "", ApiSince=24)]
public MessageFormat (string? pattern, Java.Util.Locale? locale);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/util/Locale;)V", "", ApiSince=24)>]
new Android.Icu.Text.MessageFormat : string * Java.Util.Locale -> Android.Icu.Text.MessageFormat
Parameters
- pattern
- String
the pattern for this message format
- locale
- Locale
the locale for this message format
- Attributes
Remarks
Constructs a MessageFormat for the specified locale and pattern. Sets the locale and calls applyPattern(pattern).
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.