RectangleAlign Method (Rectangle, Int32, Int32) |
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 Rectangle Align(
Rectangle rectangle,
int gridWidth,
int gridHeight
)
Public Shared Function Align (
rectangle As Rectangle,
gridWidth As Integer,
gridHeight As Integer
) As Rectangle
static member Align :
rectangle : Rectangle *
gridWidth : int *
gridHeight : int -> Rectangle
Parameters
- rectangle
- Type: Eto.DrawingRectangle
Rectangle to align - gridWidth
- Type: SystemInt32
Grid width - gridHeight
- Type: SystemInt32
Grid height
Return Value
Type:
RectangleA 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