PrintDocument for WinForms | ComponentOne
C1.Win.PrintPreview.8 Assembly / C1.Win.C1Preview.Design Namespace / SampleC1PrintDocument 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 C1.C1Preview.LineDef to draw the line with.

In This Topic
    RenderDirectLine(Unit,Unit,Unit,Unit,LineDef) Method
    In This Topic
    Adds a line to the C1.C1Preview.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 C1.C1Preview.LineDef to draw the line with.
    Remarks

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

    See Also