Click or drag to resize

RectangleFAlign Method (RectangleF, SizeF)

Aligns the rectangle to a grid of the specified gridSize

Namespace:  Eto.Drawing
Assembly:  Eto (in Eto.dll) Version: 2.5.3-dev
Syntax
public static RectangleF Align(
	RectangleF rectangle,
	SizeF gridSize
)

Parameters

rectangle
Type: Eto.DrawingRectangleF
Rectangle to align
gridSize
Type: Eto.DrawingSizeF
Size of the grid to align the rectangle to

Return Value

Type: RectangleF
A new Rectangle aligned to the grid
Remarks
This will align the top, left, right, and bottom to a grid by inflating each edge to the next grid line.
See Also