다음을 통해 공유


MessageFormat.ApplyPattern Method

Definition

Overloads

ApplyPattern(String)

Sets the pattern used by this message format.

ApplyPattern(String, MessagePattern+ApostropheMode)

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)

[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
Attributes

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