DrawLine Method
DrawLine(Pen, Point, Point)
Draws a line connecting two Point structures.
Declaration
public void DrawLine(Pen pen, Point a, Point b)
Parameters
| Type | Name | Description |
|---|---|---|
| Pen | pen | Pen that determines the color, width, and style of the line. |
| Point | a | Point structure that represents the first point to connect. |
| Point | b | Point structure that represents the second point to connect. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException |
|