Share via


RectF.Union Method

Definition

Overloads

Union(RectF)

Update this Rect to enclose itself and the specified rectangle.

Union(Single, Single)

Update this Rect to enclose itself and the [x,y] coordinate.

Union(Single, Single, Single, Single)

Update this Rect to enclose itself and the specified rectangle.

Union(RectF)

Update this Rect to enclose itself and the specified rectangle.

[Android.Runtime.Register("union", "(Landroid/graphics/RectF;)V", "GetUnion_Landroid_graphics_RectF_Handler")]
public virtual void Union (Android.Graphics.RectF r);
[<Android.Runtime.Register("union", "(Landroid/graphics/RectF;)V", "GetUnion_Landroid_graphics_RectF_Handler")>]
abstract member Union : Android.Graphics.RectF -> unit
override this.Union : Android.Graphics.RectF -> unit

Parameters

r
RectF

The rectangle being unioned with this rectangle

Attributes

Remarks

Update this Rect to enclose itself and the specified rectangle. If the specified rectangle is empty, nothing is done. If this rectangle is empty it is set to the specified rectangle.

Java documentation for android.graphics.RectF.union(android.graphics.RectF).

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

Union(Single, Single)

Update this Rect to enclose itself and the [x,y] coordinate.

[Android.Runtime.Register("union", "(FF)V", "GetUnion_FFHandler")]
public virtual void Union (float x, float y);
[<Android.Runtime.Register("union", "(FF)V", "GetUnion_FFHandler")>]
abstract member Union : single * single -> unit
override this.Union : single * single -> unit

Parameters

x
Single

The x coordinate of the point to add to the rectangle

y
Single

The y coordinate of the point to add to the rectangle

Attributes

Remarks

Update this Rect to enclose itself and the [x,y] coordinate. There is no check to see that this rectangle is non-empty.

Java documentation for android.graphics.RectF.union(float, float).

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

Union(Single, Single, Single, Single)

Update this Rect to enclose itself and the specified rectangle.

[Android.Runtime.Register("union", "(FFFF)V", "GetUnion_FFFFHandler")]
public virtual void Union (float left, float top, float right, float bottom);
[<Android.Runtime.Register("union", "(FFFF)V", "GetUnion_FFFFHandler")>]
abstract member Union : single * single * single * single -> unit
override this.Union : single * single * single * single -> unit

Parameters

left
Single

The left edge being unioned with this rectangle

top
Single

The top edge being unioned with this rectangle

right
Single

The right edge being unioned with this rectangle

bottom
Single

The bottom edge being unioned with this rectangle

Attributes

Remarks

Update this Rect to enclose itself and the specified rectangle. If the specified rectangle is empty, nothing is done. If this rectangle is empty it is set to the specified rectangle.

Java documentation for android.graphics.RectF.union(float, float, float, float).

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