PrintDocument for WinForms | ComponentOne
C1.Win.PrintPreview.8 Assembly / C1.Win.C1Preview.Design Namespace / SampleC1PrintDocument Class / RenderDirectGraphicsBegin Method
The horizontal (X) coordinate on the current page.
The vertical (Y) coordinate on the current page.

In This Topic
    RenderDirectGraphicsBegin Method (SampleC1PrintDocument)
    In This Topic
    Creates an internally maintained C1.C1Preview.RenderGraphics object that can be used to add graphics at a specific position to the C1.C1Preview.C1PrintDocument.Body of the document on the current page.
    Syntax
    'Declaration
     
    Public Sub RenderDirectGraphicsBegin( _
       ByVal x As Unit, _
       ByVal y As Unit _
    ) 
    public void RenderDirectGraphicsBegin( 
       Unit x,
       Unit y
    )

    Parameters

    x
    The horizontal (X) coordinate on the current page.
    y
    The vertical (Y) coordinate on the current page.
    Remarks
    Between the calls to this method and C1.C1Preview.C1PrintDocument.RenderDirectGraphicsEnd, use C1.C1Preview.C1PrintDocument.CurrentDirectRenderGraphics property to access the C1.C1Preview.RenderGraphics object that can be used to draw on.

    This method throws an exception if a call to RenderDirectGraphicsBegin without a matching call to C1.C1Preview.C1PrintDocument.RenderDirectGraphicsEnd has already been issued.

    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.RenderBlock.

    See Also