DateFormatSymbols.GetYearNames(Int32, Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
若曆法中有循環年份名稱串,例如「家子」、「宜州」等,則回傳。
[Android.Runtime.Register("getYearNames", "(II)[Ljava/lang/String;", "GetGetYearNames_IIHandler", ApiSince=24)]
public virtual string[]? GetYearNames(int context, int width);
[<Android.Runtime.Register("getYearNames", "(II)[Ljava/lang/String;", "GetGetYearNames_IIHandler", ApiSince=24)>]
abstract member GetYearNames : int * int -> string[]
override this.GetYearNames : int * int -> string[]
參數
- context
- Int32
使用上下文:格式,獨立。
- width
- Int32
所要求的名稱寬度:寬、簡稱、短、窄。
傳回
String[]
年份名稱串,或若此日曆無法使用則為空。
- 屬性
備註
若曆法中有循環年份名稱串,例如「家子」、「宜州」等,則回傳。
Java 文件 android.icu.text.DateFormatSymbols.getYearNames(int, int)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。