This documentation is archived and is not being maintained.

Graphics.DrawLine Method

Draws a line connecting the two points specified by the coordinate pairs.

Name Description
Graphics.DrawLine (Pen, Point, Point) Draws a line connecting two Point structures.
Graphics.DrawLine (Pen, PointF, PointF) Draws a line connecting two PointF structures.
Graphics.DrawLine (Pen, Int32, Int32, Int32, Int32) Draws a line connecting the two points specified by the coordinate pairs.

Supported by the .NET Compact Framework.

Graphics.DrawLine (Pen, Single, Single, Single, Single) Draws a line connecting the two points specified by the coordinate pairs.
Show: