PrintDocument for WinForms | ComponentOne
C1.PrintDocument.8 Assembly / C1.C1Preview Namespace / C1PrintDocument Class / RenderDirectLine Method / RenderDirectLine(Unit,Unit,Unit,Unit,LineDef) 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 LineDef to draw the line with.

In This Topic
    RenderDirectLine(Unit,Unit,Unit,Unit,LineDef) Method
    In This Topic
    Adds a line to the C1PrintDocument.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 line As LineDef _
    ) 
    public void RenderDirectLine( 
       Unit fromX,
       Unit fromY,
       Unit toX,
       Unit toY,
       LineDef line
    )

    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.
    line
    The LineDef to draw the line with.
    Remarks

    This method can only be used between calls to C1PrintDocument.StartDoc and C1PrintDocument.EndDoc methods on the current document. For details, see C1PrintDocument.RenderDirect.

    See Also