PrintDocument for WinForms | ComponentOne
C1.Win.PrintPreview.4.5.2 Assembly / C1.Win.C1Preview.Design Namespace / SampleC1PrintDocument Class / RenderInlineText Method / RenderInlineText(String,FontStyle) Method
The string to add to the C1.C1Preview.RenderParagraph.Content of the current inline paragraph.
The System.Drawing.FontStyle to use for the text.

In This Topic
    RenderInlineText(String,FontStyle) Method
    In This Topic
    Renders a string into the current inline paragraph, using the specified font style.
    Syntax
    'Declaration
     
    Public Overloads Function RenderInlineText( _
       ByVal text As String, _
       ByVal fontStyle As FontStyle _
    ) As Boolean
    public bool RenderInlineText( 
       string text,
       FontStyle fontStyle
    )

    Parameters

    text
    The string to add to the C1.C1Preview.RenderParagraph.Content of the current inline paragraph.
    fontStyle
    The System.Drawing.FontStyle to use for the text.

    Return Value

    true if no warnings were generated by this call, false otherwise.
    Remarks
    This method creates a new C1.C1Preview.ParagraphText object with the specified font style, and adds it to the current internally maintained C1.C1Preview.RenderParagraph object. A new paragraph is started if there is no current one.

    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