PrintDocument for WinForms | ComponentOne
C1.Win.PrintPreview.4.5.2 Assembly / C1.Win.C1Preview.Design Namespace / SampleC1PrintDocument Class / RenderBlock Method
The C1.C1Preview.RenderObject to add to the block flow.

In This Topic
    RenderBlock Method (SampleC1PrintDocument)
    In This Topic
    Adds a C1.C1Preview.RenderObject into the block flow of the current document, and resolves it.

    This method can only be used if C1.C1Preview.C1PrintDocument.IsStartEndDocMode is true.

    Syntax
    'Declaration
     
    Public Function RenderBlock( _
       ByVal ro As RenderObject _
    ) As Boolean
    public bool RenderBlock( 
       RenderObject ro
    )

    Parameters

    ro
    The C1.C1Preview.RenderObject to add to the block flow.

    Return Value

    true if no warnings were generated by this call, false otherwise.
    Remarks
    As all other RenderBlock..., RenderDirect... and RenderInline... methods, This method can only be used between calls to C1.C1Preview.C1PrintDocument.StartDoc and C1.C1Preview.C1PrintDocument.EndDoc on the current document, i.e. when the C1.C1Preview.C1PrintDocument.IsStartEndDocMode property is true.

    Do not use this method if the document is generated with a call to the C1.C1Preview.C1PrintDocument.Generate method.

    See Also