Share via


Rect.OffsetTo(Int32, Int32) Method

Definition

Offset the rectangle to a specific (left, top) position, keeping its width and height the same.

[Android.Runtime.Register("offsetTo", "(II)V", "")]
public void OffsetTo (int newLeft, int newTop);
[<Android.Runtime.Register("offsetTo", "(II)V", "")>]
member this.OffsetTo : int * int -> unit

Parameters

newLeft
Int32

The new "left" coordinate for the rectangle

newTop
Int32

The new "top" coordinate for the rectangle

Attributes

Remarks

Offset the rectangle to a specific (left, top) position, keeping its width and height the same.

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