PrintDocument for WinForms | ComponentOne
C1.PrintDocument.4.5.2 Assembly / C1.C1Preview Namespace / C1PrintDocument Class / RenderDirectLine Method / RenderDirectLine(Unit,Unit,Unit,Unit,Color,Unit) Method
The X coordinate of the first point that the line connects.
The Y coordinate of the first point that the line connects.
The X coordinate of the second point that the line connects.
The Y coordinate of the second point that the line connects.
The line color.
The line thickness.

In This Topic
    RenderDirectLine(Unit,Unit,Unit,Unit,Color,Unit) Method
    In This Topic
    Adds a line to the Body of the current document at a specific position on the current page, and resolves it.
    Syntax
    'Declaration
     
    Public Overloads Sub RenderDirectLine( _
       ByVal fromX As Unit, _
       ByVal fromY As Unit, _
       ByVal toX As Unit, _
       ByVal toY As Unit, _
       ByVal lineColor As Color, _
       ByVal lineThickness As Unit _
    ) 
    public void RenderDirectLine( 
       Unit fromX,
       Unit fromY,
       Unit toX,
       Unit toY,
       Color lineColor,
       Unit lineThickness
    )

    Parameters

    fromX
    The X coordinate of the first point that the line connects.
    fromY
    The Y coordinate of the first point that the line connects.
    toX
    The X coordinate of the second point that the line connects.
    toY
    The Y coordinate of the second point that the line connects.
    lineColor
    The line color.
    lineThickness
    The line thickness.
    Remarks

    This method can only be used between calls to StartDoc and EndDoc methods on the current document. For details, see RenderDirect(Unit,Unit,RenderObject,Object,Object).

    See Also