Click or drag to resize

DrawObject Class

X#
Provide the base class from which all X# DrawObject objects are subclassed.
Inheritance Hierarchy
Object
  VObject
    DrawObject
      LineObject
      ShapeObject
      TextObject

Namespace:  VO
Assembly:  VOGUIClasses (in VOGUIClasses.dll) Version: 2.19
Syntax
 CLASS DrawObject INHERIT VObject
Request Example View Source

The DrawObject type exposes the following members.

Constructors
  NameDescription
Public methodDrawObject
Construct a DrawObject object.
Top
Properties
  NameDescription
Public propertyBoundingBox
A bounding box representing the smallest rectangle (in the owner window's canvas coordinates) which encloses this DrawObject object.
Public propertyOrigin
A point representing the origin of this DrawObject object in canvas coordinates.
Public propertyRasterOperation
A constant, indicating the raster operation in use for this DrawObject object:
Public propertySize
A dimension representing the size of this DrawObject object.
Top
Methods
  NameDescription
Public methodDestroy
Provide a method to de-instantiate a DrawObject object.
(Overrides Destroy.)
Public methodDraw
Display a DrawObject object.
Public methodHandle
Return the handle for a DrawObject object.
Public methodHitTest
Determine if a given point lies within the bounding box of a DrawObject object.
Top
Fields
  NameDescription
Public fieldoCargo
Cargo slot.
(Inherited from VObject.)
Top
Remarks
The DrawObject class provides a protocol for drawable objects (for example, the Window class invokes DrawObject's methods to manage a drawable object). This protocol provides a means to maintain arrays of drawing objects for subsequent display on a window. Each object in the DrawObject hierarchy should provide both a BoundingBox property (to identify the smallest area that can enclose the drawing object) and a Draw() method (to specify how the object is to be drawn). When the application is finished with the object, it must be explicitly destroyed using the Destroy() method.
See Also

Reference