Click or drag to resize

LineObject Class (Typed)

X#
Create a LineObject object; this type of entity is part of the DrawObject hierarchy, which provides a means of displaying and manipulating various objects.
Inheritance Hierarchy
Object
  VObject
    DrawObject
      LineObject

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

The LineObject type exposes the following members.

Constructors
  NameDescription
Public methodLineObject(Point, Point)
Construct a LineObject object.
Public methodLineObject(Point, Point, Pen)
Construct a LineObject object.
Top
Properties
  NameDescription
Public propertyBoundingBox
A bounding box representing the smallest rectangle that completely encloses this LineObject object.
(Overrides BoundingBox.)
Public propertyOrigin (Overrides Origin.)
Public propertyPen
Public propertyRasterOperation (Inherited from DrawObject.)
Public propertySize (Overrides Size.)
Top
Functions
  NameDescription
Public methodDestroy
Free memory resources allocated for a VObject object and its derived objects.
(Inherited from VObject.)
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 LineObject object, call Window:Draw() with the LineObject 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 oLine AS OBJECT
3oLine := LineObject{Point{10,10},Point{20,20}}
4SELF:Draw(oLine)
See Also