RectangleFromCenter Method |
Creates a new instance of a Rectangle with a specified center and size
Namespace:
Eto.Drawing
Assembly:
Eto (in Eto.dll) Version: 2.5.3-dev
Syntax public static Rectangle FromCenter(
Point center,
Size size
)
Public Shared Function FromCenter (
center As Point,
size As Size
) As Rectangle
static member FromCenter :
center : Point *
size : Size -> Rectangle
Parameters
- center
- Type: Eto.DrawingPoint
Center of the rectangle - size
- Type: Eto.DrawingSize
Size of the rectangle
Return Value
Type:
RectangleA new instance of a Rectangle with the specified center and size
See Also