[]
Draws a series of connected lines, using a specified line color, width and style.
If the value of lineStyle parameter is not Solid, the lines are drawn with a Pen having LineCap set to Square instead of Flat.
public void DrawLines(PointF[] points, Color lineColor, float lineWidth, DashStyle lineStyle = DashStyle.Solid)
Public Sub DrawLines(points As PointF(), lineColor As Color, lineWidth As Single, Optional lineStyle As DashStyle = DashStyle.Solid)
| Type | Name | Description |
|---|---|---|
| PointF[] | points | The array of points to connect. |
| Color | lineColor | The line color. |
| float | lineWidth | The line width. |
| DashStyle | lineStyle | The line style (solid by default). |
Draws a series of connected lines, using a specified line style.
If the dashPattern array contains two or more items, the lines are drawn with a Pen having LineCap set to Square instead of Flat.
public void DrawLines(PointF[] points, Color lineColor, float lineWidth, float[] dashPattern)
Public Sub DrawLines(points As PointF(), lineColor As Color, lineWidth As Single, dashPattern As Single())
| Type | Name | Description |
|---|---|---|
| PointF[] | points | The array of points to connect. |
| Color | lineColor | The line color. |
| float | lineWidth | The line width. |
| float[] | dashPattern | The dash pattern. |
Draws a series of connected lines, using a specified pen.
public void DrawLines(PointF[] points, Pen pen)
Public Sub DrawLines(points As PointF(), pen As Pen)
| Type | Name | Description |
|---|---|---|
| PointF[] | points | The array of points to connect. |
| Pen | pen | The pen to use. |