[]
        
(Showing Draft Content)

GrapeCity.Documents.Drawing.GcGraphics.DrawPath

DrawPath Method

DrawPath(IPath, Color, float, DashStyle)

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.

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

DrawPath(IPath, Color, float, float[])

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.

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

DrawPath(IPath, Pen)

Draws a path using a specified pen.

Declaration
public void DrawPath(IPath path, Pen pen)
Public Sub DrawPath(path As IPath, pen As Pen)
Parameters
Type Name Description
IPath path

An object implementing the IPath interface that represents the path to draw.

Pen pen

The pen used to draw the path.