[]
Draws a line between the specified points using the specified Pen.
void DrawLine(Pen pen, Point point1, Point point2)
Sub DrawLine(pen As Pen, point1 As Point, point2 As Point)
| Type | Name | Description |
|---|---|---|
| Pen | pen | The pen with which to stroke the line. |
| Point | point1 | The start point of the line. |
| Point | point2 | The end point of the line. |
Draws a line between the specified points using the specified BorderLine.
void DrawLine(Pen pen, double x, double y, double x2, double y2)
Sub DrawLine(pen As Pen, x As Double, y As Double, x2 As Double, y2 As Double)
| Type | Name | Description |
|---|---|---|
| Pen | pen | |
| double | x | The x-coordinate of the start point of the line. |
| double | y | The y-coordinate of the start point of the line. |
| double | x2 | The x-coordinate of the end point of the line. |
| double | y2 | The y-coordinate of the end point of the line. |