Reports for WinForms | ComponentOne
C1.C1Report.4 Assembly / C1.C1Preview Namespace / C1PrintDocument Class / RenderBlockText Method / RenderBlockText(String,AlignHorzEnum) Method
The text to render.
The horizontal text alignment to use.

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

    Parameters

    text
    The text to render.
    horzAlign
    The horizontal text alignment to use.

    Return Value

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

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

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

    See Also