PrintDocument for WinForms | ComponentOne
C1.Win.PrintPreview.8 Assembly / C1.Win.C1Preview.Design Namespace / SampleC1PrintDocument Class / RenderBlockText Method / RenderBlockText(String) Method
The text to render.

In This Topic
    RenderBlockText(String) Method
    In This Topic
    Renders a block of text into the block flow of the current document.
    Syntax
    'Declaration
     
    Public Overloads Function RenderBlockText( _
       ByVal text As String _
    ) As Boolean
    public bool RenderBlockText( 
       string text
    )

    Parameters

    text
    The text to render.

    Return Value

    true if no warnings were generated by this call, false otherwise.
    Remarks

    The width of the rendered block is set to the width of the page (or column for multi-column layouts), which is equivalent to setting the C1.C1Preview.RenderObject.Width of a C1.C1Preview.RenderObject to "parent.width".

    The height of the rendered block is set to auto, which is equivalent to setting the C1.C1Preview.RenderObject.Height of a C1.C1Preview.RenderObject to C1.C1Preview.Unit.Auto or "auto".

    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