PrintDocument for WinForms | ComponentOne
C1.PrintDocument.6 Assembly / C1.C1Preview Namespace / C1PrintDocument 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 RenderObject.Width of a RenderObject to "parent.width".

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

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

    See Also