Rect.Set Rect.Set Method

Definition

Overloads

Set(Rect) Set(Rect)

Copy the coordinates from src into this rectangle.

Set(Int32, Int32, Int32, Int32) Set(Int32, Int32, Int32, Int32)

Set the rectangle's coordinates to the specified values.

Set(Rect) Set(Rect)

Copy the coordinates from src into this rectangle.

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

Parameters

src
Rect Rect

The rectangle whose coordinates are copied into this rectangle.

Remarks

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.

Set(Int32, Int32, Int32, Int32) Set(Int32, Int32, Int32, Int32)

Set the rectangle's coordinates to the specified values.

[Android.Runtime.Register("set", "(IIII)V", "")]
public void Set (int left, int top, int right, int bottom);
member this.Set : int * int * int * int -> unit

Parameters

left
Int32 Int32

The X coordinate of the left side of the rectangle

top
Int32 Int32

The Y coordinate of the top of the rectangle

right
Int32 Int32

The X coordinate of the right side of the rectangle

bottom
Int32 Int32

The Y coordinate of the bottom of the rectangle

Remarks

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