Click or drag to resize

RectangleObject Class (Typed)

X#
Create a RectangleObject object; this class is part of the DrawObject hierarchy, which provides a means of displaying and manipulating various geometric objects.
Inheritance Hierarchy
Object
  VObject
    DrawObject
      ShapeObject
        RectangleObject

Namespace:  XSharp.VO.SDK
Assembly:  XSharp.VOGUIClasses (in XSharp.VOGUIClasses.dll) Version: 2.19
Syntax
 CLASS RectangleObject INHERIT ShapeObject
Request Example View Source

The RectangleObject type exposes the following members.

Constructors
  NameDescription
Public methodRectangleObject(Usual, Usual, Usual, Usual)
Construct a rectangle.
Public methodRectangleObject(Point, Dimension, Pen, Brush)
Construct a rectangle.
Top
Properties
  NameDescription
Public propertyBoundingBox (Inherited from ShapeObject.)
Public propertyBrush (Inherited from ShapeObject.)
Public propertyOrigin (Inherited from DrawObject.)
Public propertyPen (Inherited from ShapeObject.)
Public propertyRasterOperation (Inherited from DrawObject.)
Public propertySize (Inherited from ShapeObject.)
Top
Functions
  NameDescription
Public methodDestroy (Inherited from ShapeObject.)
Public methodDraw (Inherited from DrawObject.)
Public methodHandle (Inherited from DrawObject.)
Public methodHitTest (Inherited from DrawObject.)
Top
Globals and Defines
  NameDescription
Public fieldoCargo
Cargo slot.
(Inherited from VObject.)
Top
Examples
To draw a RectangleObject object, call Window:Draw() with the RectangleObject object as its argument. The window does the drawing by asking each object to draw itself—for example:
X#
1METHOD Expose(oEvent) CLASS MyWindow
2LOCAL oRectangle AS OBJECT
3oRectangle := RectangleObject{Point{10,10},;
4Dimension{20,40}}
5SELF:Draw(oRectangle)
See Also