Object2D → Object

RectShape Class

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

Properties
Height
Width

Methods
Contains

# Example

The following code in the Paint event of a Window draws a diamond shaped rectangle.

Dim r as New RectShape
r.width=75
r.height=75
r.border=100
r.bordercolor=RGB(0,0,0) //black
r.fillcolor= RGB(0,127,127) // teal
r.borderwidth=2.5
r.rotation=-.78
g.DrawObject r,100,100

# See Also

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