Version

DrawLine Method (Graphics)

Draws a line.
Syntax
'Declaration
 
Public Sub DrawLine( _
   ByVal x1 As Single, _
   ByVal y1 As Single, _
   ByVal x2 As Single, _
   ByVal y2 As Single _
) 
public void DrawLine( 
   float x1,
   float y1,
   float x2,
   float y2
)

Parameters

x1
X-coordinate of the start point.
y1
Y-coordinate of the start point.
x2
X-coordinate of the end point.
y2
Y-coordinate of the end point.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also