Język

BlendMode.ValueOf(String) Method

Definition

Returns the enum constant of this class with the specified name.

[Android.Runtime.Register("valueOf", "(Ljava/lang/String;)Landroid/graphics/BlendMode;", "", ApiSince=29)]
public static Android.Graphics.BlendMode? ValueOf(string? name);
[<Android.Runtime.Register("valueOf", "(Ljava/lang/String;)Landroid/graphics/BlendMode;", "", ApiSince=29)>]
static member ValueOf : string -> Android.Graphics.BlendMode

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.graphics.BlendMode.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.

Applies to