Draws a line connecting the two points specified by coordinate pairs.
Syntax
Parameters
- pen
- 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.
Requirements
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family
See Also