Share via


DateFormatSymbols.SetYearNames(String[], Int32, Int32) Method

Definition

Sets cyclic year name strings, for example: "jia-zi", "yi-chou", etc.

[Android.Runtime.Register("setYearNames", "([Ljava/lang/String;II)V", "GetSetYearNames_arrayLjava_lang_String_IIHandler", ApiSince=24)]
public virtual void SetYearNames (string[]? yearNames, int context, int width);
[<Android.Runtime.Register("setYearNames", "([Ljava/lang/String;II)V", "GetSetYearNames_arrayLjava_lang_String_IIHandler", ApiSince=24)>]
abstract member SetYearNames : string[] * int * int -> unit
override this.SetYearNames : string[] * int * int -> unit

Parameters

yearNames
String[]

The new cyclic year name strings.

context
Int32

The usage context: FORMAT, STANDALONE (currently only FORMAT is supported).

width
Int32

The name width: WIDE, ABBREVIATED, NARROW (currently only ABBREVIATED is supported).

Attributes

Remarks

Sets cyclic year name strings, for example: "jia-zi", "yi-chou", etc.

Java documentation for android.icu.text.DateFormatSymbols.setYearNames(java.lang.String[], int, int).

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