Click or drag to resize

RectangleFOffset Method (RectangleF, Single, Single)

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 RectangleF Offset(
	RectangleF rectangle,
	float x,
	float y
)

Parameters

rectangle
Type: Eto.DrawingRectangleF
Rectangle to offset
x
Type: SystemSingle
Horizontal offset to move the rectangle
y
Type: SystemSingle
Vertical offset to move the rectangle

Return Value

Type: RectangleF
A new Rectangle with the offset location
See Also