[]
        
(Showing Draft Content)

GrapeCity.Documents.Drawing.GcGraphics.DrawLines

DrawLines Method

DrawLines(PointF[], Color, float, DashStyle)

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.

Declaration
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)
Parameters
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).

DrawLines(PointF[], Color, float, float[])

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.

Declaration
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())
Parameters
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.

DrawLines(PointF[], Pen)

Draws a series of connected lines, using a specified pen.

Declaration
public void DrawLines(PointF[] points, Pen pen)
Public Sub DrawLines(points As PointF(), pen As Pen)
Parameters
Type Name Description
PointF[] points

The array of points to connect.

Pen pen

The pen to use.