From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

Class (inherits from RectShape)

Used for drawing two-dimensional ellipses in a vector graphics environment.

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


Place the following method in the Paint event handler of a Window. It will draw an oval in the window whenever it updates:

Var o As New OvalShape
o.Width = 60
o.Height = 120

o.FillColor = RGB(127, 127, 255)
g.DrawObject(o, o.Width, o.Height)

See Also

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