RectShape

From Xojo Documentation

Class (inherits from Object2D)

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

Properties
BorderColor FillOpacity Width
BorderOpacity Height X
BorderWidth Rotation Y
FillColor Scale


Methods
Contains

Examples

The following code in the Canvas.Paint event handler draws a diamond shaped rectangle:

Var 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 = -0.78
g.DrawObject(r, 100, 100)

See Also

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