class Line
A line on a form.
Syntax
[<oRef> =] new Line(<container> [,<name expC>])
<oRef>
A variable or property—typically of <container>—in which to store a reference to the newly created Line object.
<container>
The container—typically a Form object—to which you’re binding the Line object.
<name expC>
An optional name for the Line object. If not specified, the Line class will auto-generate a name for the object.
Properties
The following tables list the properties of interest of the Line class. (No particular events or methods are associated with this class.)
Property |
Default |
Description |
LINE |
Identifies the object as an instance of the Line class | |
|
The location of the bottom end of the Line in the form’s current metric units, relative to the top edge of its container | |
(LINE) |
Identifies the object as an instance of a custom class. When no custom class exists, defaults to baseClassName | |
WindowText |
Color of the line | |
false |
Whether the Line object’s position is fixed or if it can be "pushed down" or "pulled up" by the rendering or suppression of other objects | |
|
The location of the left end of the Line in the form’s current metric units, relative to the left edge of its container | |
Solid |
The pen style used to draw the line (0=Solid, 1=Dash, 2=Dot, 3=DashDot, 4=DashDotDot) | |
|
The location of the right end of the Line in the form’s current metric units, relative to the left edge of its container | |
|
The location of the top of the Line in the form’s current metric units, relative to the top edge of its container | |
1 |
Width in pixels |
The following table lists the common properties, events, and methods of the Line class:
Property |
|
Event |
Method |
beforeRelease |
Description
Use a Line object to draw a line in a form or report. Note that the position properties—top, left, bottom, and right—work different for the Line object than they do with other components. The width property controls the thickness of the line.
A Line has no hWnd because it is drawn on the surface of the form; it is not a genuine Windows control. Despite its position in the form’s z-order, a Line can never be drawn on top of another component (other than a Line or Shape).