Language

Rect.UnflattenFromString(String) Method

Definition

Returns a Rect from a string of the form returned by #flattenToString, or null if the string is not of that form.

[Android.Runtime.Register("unflattenFromString", "(Ljava/lang/String;)Landroid/graphics/Rect;", "")]
public static Android.Graphics.Rect? UnflattenFromString(string? str);
[<Android.Runtime.Register("unflattenFromString", "(Ljava/lang/String;)Landroid/graphics/Rect;", "")>]
static member UnflattenFromString : string -> Android.Graphics.Rect

Parameters

str
String

Text in the left top right bottom format produced by FlattenToString().

Returns

The rectangle parsed from the four integers, or null for a null, empty, or nonmatching string.

Attributes

Remarks

Returns a Rect from a string of the form returned by #flattenToString, or null if the string is not of that form.

Java documentation for android.graphics.Rect.unflattenFromString(java.lang.String).

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