Megosztás a következőn keresztül:


Month.GetDisplayName(TextStyle, Locale) Method

Definition

Gets the textual representation, such as 'Jan' or 'December'.

[Android.Runtime.Register("getDisplayName", "(Ljava/time/format/TextStyle;Ljava/util/Locale;)Ljava/lang/String;", "", ApiSince=26)]
public string? GetDisplayName (Java.Time.Format.TextStyle? style, Java.Util.Locale? locale);
[<Android.Runtime.Register("getDisplayName", "(Ljava/time/format/TextStyle;Ljava/util/Locale;)Ljava/lang/String;", "", ApiSince=26)>]
member this.GetDisplayName : Java.Time.Format.TextStyle * Java.Util.Locale -> string

Parameters

style
TextStyle

the length of the text required, not null

locale
Locale

the locale to use, not null

Returns

the text value of the month-of-year, not null

Attributes

Remarks

Gets the textual representation, such as 'Jan' or 'December'.

This returns the textual name used to identify the month-of-year, suitable for presentation to the user. The parameters control the style of the returned text and the locale.

If no textual mapping is found then the #getValue() numeric value is returned.

Java documentation for java.time.Month.getDisplayName(java.time.format.TextStyle, java.util.Locale).

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