Method

Graphics.FillRoundRect


Warning

This item was deprecated in version 2019r2. Please use Graphics.FillRoundRectangle as a replacement.

Description

Draws a rounded rectangle filled with the current color. The current color is set with the ForeColor property.

Notes

x and y are the coordinates of the top-left corner. width and height specify the size of the round rectangle. arcWidth and arcHeight control the shape of the corners in the horizontal and vertical axes, respectively. They are the distance (in points) from the corner at which the arc begins. Setting them to zero results in a rectangle with sharp corners.

Sample code

This example draws a rounded rectangle with a red fill and 30 pixel rounded corners.

g.ForeColor = &cff0000
g.FillRoundRect(10, 10, 100, 60, 30, 30)

Compatibility

All project types on all supported operating systems.