DateTimePatternGenerator.DisplayWidth.ValueOf(String) 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.
Returns the enum constant of this class with the specified name.
[Android.Runtime.Register("valueOf", "(Ljava/lang/String;)Landroid/icu/text/DateTimePatternGenerator$DisplayWidth;", "", ApiSince=30)]
public static Android.Icu.Text.DateTimePatternGenerator.DisplayWidth ValueOf(string name);
[<Android.Runtime.Register("valueOf", "(Ljava/lang/String;)Landroid/icu/text/DateTimePatternGenerator$DisplayWidth;", "", ApiSince=30)>]
static member ValueOf : string -> Android.Icu.Text.DateTimePatternGenerator.DisplayWidth
Parameters
- name
- String
The name of the constant to return.
Returns
The enum constant of this class with the specified name.
- Attributes
Remarks
Returns the enum constant of this class with the specified name.
The name must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
An IllegalArgumentException is thrown if this enum class has no constant with the specified name. A NullPointerException is thrown if name is null.
Android reference for android.icu.text.DateTimePatternGenerator.DisplayWidth.valueOf.
Java reference for Java Language Specification 8.9.3.
Java reference for java.lang.Enum.
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.