RectangleOffset Method (Rectangle, Int32, Int32) |
Offsets the location of the rectangle by the specified x and y values
Namespace:
Eto.Drawing
Assembly:
Eto (in Eto.dll) Version: 2.5.3-dev
Syntax public static Rectangle Offset(
Rectangle rectangle,
int x,
int y
)
Public Shared Function Offset (
rectangle As Rectangle,
x As Integer,
y As Integer
) As Rectangle
static member Offset :
rectangle : Rectangle *
x : int *
y : int -> Rectangle
Parameters
- rectangle
- Type: Eto.DrawingRectangle
Rectangle to offset - x
- Type: SystemInt32
Horizontal offset to move the rectangle - y
- Type: SystemInt32
Vertical offset to move the rectangle
Return Value
Type:
RectangleA new Rectangle with the offset location
See Also