Language

MessageFormat.ApplyPattern Method

Definition

Overloads

Name Description
ApplyPattern(String)

Sets the pattern used by this message format.

ApplyPattern(String, MessagePattern+ApostropheMode)

[icu] Sets the ApostropheMode and the pattern used by this message format.

ApplyPattern(String)

Sets the pattern used by this message format.

[Android.Runtime.Register("applyPattern", "(Ljava/lang/String;)V", "GetApplyPattern_Ljava_lang_String_Handler", ApiSince=24)]
public virtual void ApplyPattern(string? pttrn);
[<Android.Runtime.Register("applyPattern", "(Ljava/lang/String;)V", "GetApplyPattern_Ljava_lang_String_Handler", ApiSince=24)>]
abstract member ApplyPattern : string -> unit
override this.ApplyPattern : string -> unit

Parameters

pttrn
String

the pattern for this message format

Attributes

Remarks

Sets the pattern used by this message format. Parses the pattern and caches Format objects for simple argument types. Patterns and their interpretation are specified in the class description.

Java documentation for android.icu.text.MessageFormat.applyPattern(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

ApplyPattern(String, MessagePattern+ApostropheMode)

[icu] Sets the ApostropheMode and the pattern used by this message format.

[Android.Runtime.Register("applyPattern", "(Ljava/lang/String;Landroid/icu/text/MessagePattern$ApostropheMode;)V", "GetApplyPattern_Ljava_lang_String_Landroid_icu_text_MessagePattern_ApostropheMode_Handler", ApiSince=24)]
public virtual void ApplyPattern(string? pattern, Android.Icu.Text.MessagePattern.ApostropheMode? aposMode);
[<Android.Runtime.Register("applyPattern", "(Ljava/lang/String;Landroid/icu/text/MessagePattern$ApostropheMode;)V", "GetApplyPattern_Ljava_lang_String_Landroid_icu_text_MessagePattern_ApostropheMode_Handler", ApiSince=24)>]
abstract member ApplyPattern : string * Android.Icu.Text.MessagePattern.ApostropheMode -> unit
override this.ApplyPattern : string * Android.Icu.Text.MessagePattern.ApostropheMode -> unit

Parameters

pattern
String

the pattern for this message format

aposMode
MessagePattern.ApostropheMode

the new ApostropheMode

Attributes

Remarks

[icu] Sets the ApostropheMode and the pattern used by this message format. Parses the pattern and caches Format objects for simple argument types. Patterns and their interpretation are specified in the class description. This method is best used only once on a given object to avoid confusion about the mode, and after constructing the object with an empty pattern string to minimize overhead.

Android reference for android.icu.text.MessageFormat.applyPattern.

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