Document Solutions for Imaging
DS.Documents.Imaging Assembly / GrapeCity.Documents.Drawing Namespace / GcGraphics Class / DrawPath Method / DrawPath(IPath,Color,Single,DashStyle) Method
An object implementing the IPath interface that represents the path to draw.
The color of lines used to draw the path.
The width of lines used to draw the path.
The style of lines used to draw the path (solid by default).

In This Topic
    DrawPath(IPath,Color,Single,DashStyle) Method
    In This Topic
    Draws a path using a specified line color, width and style.

    If the value of lineStyle parameter is not DashStyle.Solid, the path is drawn with a Pen having Pen.LineCap set to PenLineCap.Square instead of PenLineCap.Flat.

    Syntax
    'Declaration
     
    Public Overloads Sub DrawPath( _
       ByVal path As IPath, _
       ByVal lineColor As System.Drawing.Color, _
       ByVal lineWidth As System.Single, _
       Optional ByVal lineStyle As DashStyle _
    ) 
    public void DrawPath( 
       IPath path,
       System.Drawing.Color lineColor,
       System.float lineWidth,
       DashStyle lineStyle
    )

    Parameters

    path
    An object implementing the IPath interface that represents the path to draw.
    lineColor
    The color of lines used to draw the path.
    lineWidth
    The width of lines used to draw the path.
    lineStyle
    The style of lines used to draw the path (solid by default).
    See Also