Compartir a través de


Region.QuickContains Method

Definition

Overloads

QuickContains(Rect)

Return true if the region is a single rectangle (not complex) and it contains the specified rectangle.

QuickContains(Int32, Int32, Int32, Int32)

Return true if the region is a single rectangle (not complex) and it contains the specified rectangle.

QuickContains(Rect)

Return true if the region is a single rectangle (not complex) and it contains the specified rectangle.

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

Parameters

r
Rect

Returns

Attributes

Remarks

Return true if the region is a single rectangle (not complex) and it contains the specified rectangle. Returning false is not a guarantee that the rectangle is not contained by this region, but return true is a guarantee that the rectangle is contained by this region.

Java documentation for android.graphics.Region.quickContains(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

QuickContains(Int32, Int32, Int32, Int32)

Return true if the region is a single rectangle (not complex) and it contains the specified rectangle.

[Android.Runtime.Register("quickContains", "(IIII)Z", "GetQuickContains_IIIIHandler")]
public virtual bool QuickContains (int left, int top, int right, int bottom);
[<Android.Runtime.Register("quickContains", "(IIII)Z", "GetQuickContains_IIIIHandler")>]
abstract member QuickContains : int * int * int * int -> bool
override this.QuickContains : int * int * int * int -> bool

Parameters

left
Int32
top
Int32
right
Int32
bottom
Int32

Returns

Attributes

Remarks

Return true if the region is a single rectangle (not complex) and it contains the specified rectangle. Returning false is not a guarantee that the rectangle is not contained by this region, but return true is a guarantee that the rectangle is contained by this region.

Java documentation for android.graphics.Region.quickContains(int, int, int, int).

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