RectF.Set Method

Definition

Overloads

Set(Rect)

Copy the coordinates from src into this rectangle.

Set(RectF)

Copy the coordinates from src into this rectangle.

Set(Single, Single, Single, Single)

Set the rectangle's coordinates to the specified values.

Set(Rect)

Copy the coordinates from src into this rectangle.

[Android.Runtime.Register("set", "(Landroid/graphics/Rect;)V", "GetSet_Landroid_graphics_Rect_Handler")]
public virtual void Set (Android.Graphics.Rect src);
[<Android.Runtime.Register("set", "(Landroid/graphics/Rect;)V", "GetSet_Landroid_graphics_Rect_Handler")>]
abstract member Set : Android.Graphics.Rect -> unit
override this.Set : Android.Graphics.Rect -> unit

Parameters

src
Rect

The rectangle whose coordinates are copied into this rectangle.

Attributes

Remarks

Copy the coordinates from src into this rectangle.

Java documentation for android.graphics.RectF.set(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

Set(RectF)

Copy the coordinates from src into this rectangle.

[Android.Runtime.Register("set", "(Landroid/graphics/RectF;)V", "GetSet_Landroid_graphics_RectF_Handler")]
public virtual void Set (Android.Graphics.RectF src);
[<Android.Runtime.Register("set", "(Landroid/graphics/RectF;)V", "GetSet_Landroid_graphics_RectF_Handler")>]
abstract member Set : Android.Graphics.RectF -> unit
override this.Set : Android.Graphics.RectF -> unit

Parameters

src
RectF

The rectangle whose coordinates are copied into this rectangle.

Attributes

Remarks

Copy the coordinates from src into this rectangle.

Java documentation for android.graphics.RectF.set(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

Set(Single, Single, Single, Single)

Set the rectangle's coordinates to the specified values.

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

Parameters

left
Single

The X coordinate of the left side of the rectangle

top
Single

The Y coordinate of the top of the rectangle

right
Single

The X coordinate of the right side of the rectangle

bottom
Single

The Y coordinate of the bottom of the rectangle

Attributes

Remarks

Set the rectangle's coordinates to the specified values. Note: no range checking is performed, so it is up to the caller to ensure that left <= right and top <= bottom.

Java documentation for android.graphics.RectF.set(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