Rect.Offset(Int32, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.