다음을 통해 공유


Region.GetBounds(Rect) Method

Definition

Set the Rect to the bounds of the region.

[Android.Runtime.Register("getBounds", "(Landroid/graphics/Rect;)Z", "GetGetBounds_Landroid_graphics_Rect_Handler")]
public virtual bool GetBounds (Android.Graphics.Rect r);
[<Android.Runtime.Register("getBounds", "(Landroid/graphics/Rect;)Z", "GetGetBounds_Landroid_graphics_Rect_Handler")>]
abstract member GetBounds : Android.Graphics.Rect -> bool
override this.GetBounds : Android.Graphics.Rect -> bool

Parameters

r
Rect

Returns

Attributes

Remarks

Set the Rect to the bounds of the region. If the region is empty, the Rect will be set to [0, 0, 0, 0]

Java documentation for android.graphics.Region.getBounds(android.graphics.Rect).

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