Condividi tramite


Rect.Set Method

Definition

Overloads

Set(Rect)

Copy the coordinates from src into this rectangle.

Set(Int32, Int32, Int32, Int32)

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", "")]
public void Set (Android.Graphics.Rect src);
[<Android.Runtime.Register("set", "(Landroid/graphics/Rect;)V", "")>]
member 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.Rect.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(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);
[<Android.Runtime.Register("set", "(IIII)V", "")>]
member this.Set : int * int * int * int -> unit

Parameters

left
Int32

The X coordinate of the left side of the rectangle

top
Int32

The Y coordinate of the top of the rectangle

right
Int32

The X coordinate of the right side of the rectangle

bottom
Int32

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.Rect.set(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