Draws a line connecting the two points specified by coordinate pairs.
Syntax
'Declaration
Public Overloads Sub DrawLine( _
ByVal As System.Drawing.Pen, _
ByVal As System.Single, _
ByVal As System.Single, _
ByVal As System.Single, _
ByVal As System.Single _
)
public void DrawLine(
System.Drawing.Pen ,
System.float ,
System.float ,
System.float ,
System.float
)
Parameters
- pen
- System.Drawing.Pen object that determines the color, width, and style of the line.
- x1
- x-coordinate of the first point.
- y1
- y-coordinate of the first point.
- x2
- x-coordinate of the second point.
- y2
- y-coordinate of the second point.
See Also