RectangleExtensionsFromCenter Method
Creates a
Rectangle with the specified center point and size.
Namespace: KGySoft.WinFormsAssembly: KGySoft.WinForms (in KGySoft.WinForms.dll) Version: 5.0.1
public static Rectangle FromCenter(
Point center,
Size size
)
Public Shared Function FromCenter (
center As Point,
size As Size
) As Rectangle
public:
static Rectangle FromCenter(
Point center,
Size size
)
static member FromCenter :
center : Point *
size : Size -> Rectangle
- center Point
- The Point representing the center of the rectangle.
- size Size
- The Size representing the width and height of the rectangle.
RectangleA
Rectangle with the specified center and size.