다음을 통해 공유


SelectFormat.Format Method

Definition

Overloads

Format(String)

Selects the phrase for the given keyword.

Format(Object, StringBuffer, FieldPosition)

Selects the phrase for the given keyword.

Format(String)

Selects the phrase for the given keyword.

[Android.Runtime.Register("format", "(Ljava/lang/String;)Ljava/lang/String;", "", ApiSince=24)]
public string? Format (string? keyword);
[<Android.Runtime.Register("format", "(Ljava/lang/String;)Ljava/lang/String;", "", ApiSince=24)>]
override this.Format : string -> string

Parameters

keyword
String

a phrase selection keyword.

Returns

the string containing the formatted select message.

Attributes

Remarks

Selects the phrase for the given keyword.

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

Format(Object, StringBuffer, FieldPosition)

Selects the phrase for the given keyword.

[Android.Runtime.Register("format", "(Ljava/lang/Object;Ljava/lang/StringBuffer;Ljava/text/FieldPosition;)Ljava/lang/StringBuffer;", "GetFormat_Ljava_lang_Object_Ljava_lang_StringBuffer_Ljava_text_FieldPosition_Handler", ApiSince=24)]
public override Java.Lang.StringBuffer? Format (Java.Lang.Object? keyword, Java.Lang.StringBuffer? toAppendTo, Java.Text.FieldPosition? pos);
[<Android.Runtime.Register("format", "(Ljava/lang/Object;Ljava/lang/StringBuffer;Ljava/text/FieldPosition;)Ljava/lang/StringBuffer;", "GetFormat_Ljava_lang_Object_Ljava_lang_StringBuffer_Ljava_text_FieldPosition_Handler", ApiSince=24)>]
override this.Format : Java.Lang.Object * Java.Lang.StringBuffer * Java.Text.FieldPosition -> Java.Lang.StringBuffer

Parameters

keyword
Object

a phrase selection keyword.

toAppendTo
StringBuffer

the selected phrase will be appended to this StringBuffer.

pos
FieldPosition

will be ignored by this method.

Returns

the string buffer passed in as toAppendTo, with formatted text appended.

Attributes

Remarks

Selects the phrase for the given keyword. and appends the formatted message to the given StringBuffer.

Java documentation for android.icu.text.SelectFormat.format(java.lang.Object, java.lang.StringBuffer, java.text.FieldPosition).

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