Draw_Line

Top  Previous  Next

 

Draw_Line (Method)

 

Draws a straight line segment without including it in the current drawing

 

Syntax:

Sub Draw_Line(x1 As Single, y1 As Single, x2 As Single, y2 As Single, iClr As Short, iWidth As Short, iStyle As Short)

 

The Draw_Line method syntax consists of the following:

Parameter

Data Type

Description

x1

Single

Is the x coordinate of the start point of the line segment

y1

Single

Is the y coordinate of the start point of the line segment

x2

Single

Is the x coordinate of the end point of the line segment

y2

Single

Is the x coordinate of the end point of the line segment

iClr

Short

Is the color index number

iWidth

Short

Is the pen width

iStyle

Short

Is the line type

 

Example