DateTimePatternGenerator.GetFieldDisplayName Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The general interface to get a display name for a particular date/time field, in one of several possible display widths.
[Android.Runtime.Register("getFieldDisplayName", "(ILandroid/icu/text/DateTimePatternGenerator$DisplayWidth;)Ljava/lang/String;", "GetGetFieldDisplayName_ILandroid_icu_text_DateTimePatternGenerator_DisplayWidth_Handler", ApiSince=30)]
public virtual string? GetFieldDisplayName(int field, Android.Icu.Text.DateTimePatternGenerator.DisplayWidth? width);
[<Android.Runtime.Register("getFieldDisplayName", "(ILandroid/icu/text/DateTimePatternGenerator$DisplayWidth;)Ljava/lang/String;", "GetGetFieldDisplayName_ILandroid_icu_text_DateTimePatternGenerator_DisplayWidth_Handler", ApiSince=30)>]
abstract member GetFieldDisplayName : int * Android.Icu.Text.DateTimePatternGenerator.DisplayWidth -> string
override this.GetFieldDisplayName : int * Android.Icu.Text.DateTimePatternGenerator.DisplayWidth -> string
Parameters
- field
- Int32
The field type as an integer, such as (int)DateTimePatternField.Era. See DateTimePatternField.
The desired display width, such as Abbreviated.
Returns
The display name for the field. The base implementation returns an empty string if field is outside the valid range.
- Attributes
Remarks
The general interface to get a display name for a particular date/time field, in one of several possible display widths.
Android reference for android.icu.text.DateTimePatternGenerator.getFieldDisplayName.
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.