Home > Language Reference > Classes > Display
Line Method
Draws a line.
Syntax
Public Sub Line (ByVal x1 As Integer, ByVal y1 As Integer, ByVal x2 As Integer, ByVal y2 As Integer)
| Parameter | Description |
| x1 | X-coordinate of start point. |
| y1 | Y-coordinate of start point. |
| x2 | X-coordinate of end point. |
| y2 | Y-coordinate of end point. |
Remarks
The Line method draws a line between the points with coordinates (x1, y1) and (x2, y2), using the foreground color specified by the ForeColor property.
This method enqueues the drawing request in the graphic instruction buffer. The line is only drawn when the buffer is emptied, either because it is full or because the Flush method is called.
System requirements
| System | Minimal version | Remarks |
| Palm OS | Palm OS 3.0 | N/A |