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)

ParameterDescription
x1X-coordinate of start point.
y1Y-coordinate of start point.
x2X-coordinate of end point.
y2Y-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

SystemMinimal versionRemarks
Palm OSPalm OS 3.0N/A