[]
Offsets the location of the current Rect by specified horizontal and vertical amounts.
public void Offset(double x, double y)
Type | Name | Description |
---|---|---|
double | x | The horizontal offset to apply. |
double | y | The vertical offset to apply. |
public void Offset(Point pt)
Type | Name | Description |
---|---|---|
Point | pt | The Point specifying the horizontal and vertical offsets to apply. |
Adjusts the location of this rectangle by the specified amount.
public static Rect Offset(Rect r, Point offset)
Type | Name | Description |
---|---|---|
Rect | r | The rectangle to adjust. |
Point | offset | Amount to offset the location. |
Type | Description |
---|---|
Rect | The adjusted rectangle. |