RectangleFAlign Method (RectangleF, Single, Single) |
Aligns the rectangle to a grid of the specified gridWidth and gridHeight
Namespace:
Eto.Drawing
Assembly:
Eto (in Eto.dll) Version: 2.5.3-dev
Syntax public static RectangleF Align(
RectangleF rectangle,
float gridWidth,
float gridHeight
)
Public Shared Function Align (
rectangle As RectangleF,
gridWidth As Single,
gridHeight As Single
) As RectangleF
static member Align :
rectangle : RectangleF *
gridWidth : float32 *
gridHeight : float32 -> RectangleF
Parameters
- rectangle
- Type: Eto.DrawingRectangleF
Rectangle to align - gridWidth
- Type: SystemSingle
Grid width - gridHeight
- Type: SystemSingle
Grid height
Return Value
Type:
RectangleFA 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