MessageFormat.ApplyPattern Method
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
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
- aposMode
- MessagePattern.ApostropheMode
- 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.