RectShape

From Xojo Documentation

Revision as of 14:06, 5 March 2020 by PLefebvre (talk | contribs) (Examples)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.BorderOpacity = 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.