RectShape → Object2D → Object

RoundRectShape Class

Draws a (two-dimensional) rounded rectangle in a vector graphics environment.

Properties
Cornerheight
Cornerwidth
Segments

# Example

The following method in the Paint event of a window draws a square with rounded corners

Dim r as New RoundRectShape
r.width=75
r.height=75
r.border=100
r.bordercolor=RGB(0,0,0)
r.fillcolor= RGB(255,102,102)
r.cornerHeight=15
r.cornerWidth=15
r.borderwidth=2.5
g.DrawObject r,150,150

.

# See Also

ArcShape, CurveShape, FigureShape, FolderItem, Group2D, Graphics, OvalShape, Picture, PixmapShape, RectShape, RoundRectShape, StringShape classes.