語言

MessageFormat.ApplyPattern 方法

定義

多載

名稱 Description
ApplyPattern(String)

設定此訊息格式所採用的模式。

ApplyPattern(String, MessagePattern+ApostropheMode)

[加護病房]設定撇號模式及此訊息格式所使用的模式。

ApplyPattern(String)

設定此訊息格式所採用的模式。

[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

參數

pttrn
String

此訊息格式的模式

屬性

備註

設定此訊息格式所採用的模式。 解析模式並快取 Format 物件以支援簡單的參數類型。 模式及其詮釋會在類別說明中明確說明。

Java 文件 android.icu.text.MessageFormat.applyPattern(java.lang.String)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

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

參數

pattern
String

此訊息格式的模式

aposMode
MessagePattern.ApostropheMode

新的撇號模式

屬性

備註

[加護病房]設定撇號模式及此訊息格式所使用的模式。 解析模式並快取 Format 物件以支援簡單的參數類型。 模式及其詮釋會在類別說明中明確說明。 此方法最好只在特定物件上使用一次,以避免對模式產生混淆,且在構造一個空模式字串以減少開銷後再使用。

Android 參考資料。android.icu.text.MessageFormat.applyPattern

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於