PrintDocument for WinForms | ComponentOne
C1.PrintDocument.8 Assembly / C1.C1Preview Namespace / C1PrintDocument Class / RenderBlockText Method / RenderBlockText(String,Font) Method
The text to render.
The System.Drawing.Font to use (can be null).

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

    Parameters

    text
    The text to render.
    font
    The System.Drawing.Font to use (can be null).

    Return Value

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

    See C1PrintDocument.RenderBlockText for details on how the width and height of the text block are set.

    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