PrintDocument for WinForms | ComponentOne
C1.Win.PrintPreview.8 Assembly / C1.Win.C1Preview.Design Namespace / SampleC1PrintDocument Class / RenderBlockGraphicsBegin Method

In This Topic
    RenderBlockGraphicsBegin Method (SampleC1PrintDocument)
    In This Topic
    Creates an internally maintained C1.C1Preview.RenderGraphics object that can be used to add graphics to the block flow of the current document.
    Syntax
    'Declaration
     
    Public Function RenderBlockGraphicsBegin() As Boolean
    public bool RenderBlockGraphicsBegin()

    Return Value

    This method always returns true.
    Remarks
    Between the calls to this method and C1.C1Preview.C1PrintDocument.RenderBlockGraphicsEnd, use C1.C1Preview.C1PrintDocument.CurrentBlockRenderGraphics property to access the C1.C1Preview.RenderGraphics object that can be used to draw on.

    This method throws an exception if a call to RenderBlockGraphicsBegin without a matching call to C1.C1Preview.C1PrintDocument.RenderBlockGraphicsEnd 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