Language

ImageView.ScaleType.ValueOf(String) Method

Definition

Returns the scale type with the specified name.

[Android.Runtime.Register("valueOf", "(Ljava/lang/String;)Landroid/widget/ImageView$ScaleType;", "")]
public static Android.Widget.ImageView.ScaleType ValueOf(string name);
[<Android.Runtime.Register("valueOf", "(Ljava/lang/String;)Landroid/widget/ImageView$ScaleType;", "")>]
static member ValueOf : string -> Android.Widget.ImageView.ScaleType

Parameters

name
String

The exact name of the scale type to return.

Returns

The scale type named by name.

Attributes

Exceptions

Thrown when no scale type has the specified name.

Thrown when name is null.

Remarks

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