Click or drag to resize

TextObject Class

X#
Create a text-drawing object.
Inheritance Hierarchy
Object
  VObject
    DrawObject
      TextObject
        FormattedTextObject

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

The TextObject type exposes the following members.

Constructors
  NameDescription
Public methodTextObject
Create a TextObject object.
Top
Properties
  NameDescription
Public propertyBoundingBox
A bounding box representing the smallest rectangle (in the owner window's canvas coordinates) which encloses this TextObject object.
(Overrides BoundingBox.)
Public propertyOrigin
A point representing the origin of this DrawObject object in canvas coordinates.
(Inherited from DrawObject.)
Public propertyRasterOperation
A constant, indicating the raster operation in use for this DrawObject object:
(Inherited from DrawObject.)
Public propertySize
A dimension representing the size of this DrawObject object.
(Inherited from DrawObject.)
Top
Methods
  NameDescription
Public methodDraw
Draw the TextObject object on the window.
Important! This method is called by X# when the text requires redrawing. Do not call this method from your application code—use Window:Draw() instead.
(Overrides Draw.)
Public methodHandle
Return the handle for a DrawObject object.
(Inherited from DrawObject.)
Public methodHitTest
Determine if a given point lies within the bounding box of a DrawObject object.
(Inherited from DrawObject.)
Top
Fields
  NameDescription
Public fieldoCargo
Cargo slot.
(Inherited from VObject.)
Top
Remarks
This is part of the DrawObject hierarchy. It allows the programmer to display a text string at a particular point in a given color. An optional font can be specified.
See Also

Reference