Share via


Rect.Offset(Int32, Int32) Method

Definition

Offset the rectangle by adding dx to its left and right coordinates, and adding dy to its top and bottom coordinates.

[Android.Runtime.Register("offset", "(II)V", "")]
public void Offset (int dx, int dy);
[<Android.Runtime.Register("offset", "(II)V", "")>]
member this.Offset : int * int -> unit

Parameters

dx
Int32

The amount to add to the rectangle's left and right coordinates

dy
Int32

The amount to add to the rectangle's top and bottom coordinates

Attributes

Remarks

Offset the rectangle by adding dx to its left and right coordinates, and adding dy to its top and bottom coordinates.

Java documentation for android.graphics.Rect.offset(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