[]
Draws a path using a specified line color, width and style.
If the value of lineStyle parameter is not Solid, the path is drawn with a Pen having LineCap set to Square instead of Flat.
public void DrawPath(IPath path, Color lineColor, float lineWidth, DashStyle lineStyle = DashStyle.Solid)
Public Sub DrawPath(path As IPath, lineColor As Color, lineWidth As Single, Optional lineStyle As DashStyle = DashStyle.Solid)
Type | Name | Description |
---|---|---|
IPath | path | An object implementing the IPath interface that represents the path to draw. |
Color | lineColor | The color of lines used to draw the path. |
float | lineWidth | The width of lines used to draw the path. |
DashStyle | lineStyle | The style of lines used to draw the path (solid by default). |
Draws a path using a specified line color, width and dash pattern.
If the dashPattern array contains two or more items, the path is drawn with a Pen having LineCap set to Square instead of Flat.
public void DrawPath(IPath path, Color lineColor, float lineWidth, float[] dashPattern)
Public Sub DrawPath(path As IPath, lineColor As Color, lineWidth As Single, dashPattern As Single())
Type | Name | Description |
---|---|---|
IPath | path | An object implementing the IPath interface that represents the path to draw. |
Color | lineColor | The color of lines used to draw the path. |
float | lineWidth | The width of lines used to draw the path. |
float[] | dashPattern | The dash pattern of lines used to draw the path. |
Draws a path using a specified pen.
public void DrawPath(IPath path, Pen pen)
Public Sub DrawPath(path As IPath, pen As Pen)