다음을 통해 공유


DateTimePatternGenerator.SetAppendItemName Method

Definition

Sets the names of fields, eg "era" in English for ERA.

[Android.Runtime.Register("setAppendItemName", "(ILjava/lang/String;)V", "GetSetAppendItemName_ILjava_lang_String_Handler", ApiSince=24)]
public virtual void SetAppendItemName (Android.Icu.Text.DateTimePatternField field, string? value);
[<Android.Runtime.Register("setAppendItemName", "(ILjava/lang/String;)V", "GetSetAppendItemName_ILjava_lang_String_Handler", ApiSince=24)>]
abstract member SetAppendItemName : Android.Icu.Text.DateTimePatternField * string -> unit
override this.SetAppendItemName : Android.Icu.Text.DateTimePatternField * string -> unit

Parameters

field
DateTimePatternField

Index of the append item names.

value
String

The value to set the item to.

Attributes

Remarks

Sets the names of fields, eg "era" in English for ERA. These are only used if the corresponding AppendItemFormat is used, and if it contains a {2} variable.

This reflects the way that the CLDR data is organized.

Java documentation for android.icu.text.DateTimePatternGenerator.setAppendItemName(int, 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