RectangleExtensionsFromCenter Method

Creates a Rectangle with the specified center point and size.

Definition

Namespace: KGySoft.WinForms
Assembly: KGySoft.WinForms (in KGySoft.WinForms.dll) Version: 5.0.1
C#
public static Rectangle FromCenter(
	Point center,
	Size size
)

Parameters

center  Point
The Point representing the center of the rectangle.
size  Size
The Size representing the width and height of the rectangle.

Return Value

Rectangle
A Rectangle with the specified center and size.

See Also