PrintDocument for WinForms | ComponentOne
C1.PrintDocument.4.8 Assembly / C1.C1Preview Namespace / ParagraphObjectCollection Class / AddText Method / AddText(String,Style) Method
The text string to add.
The style to use to render the string.

In This Topic
    AddText(String,Style) Method
    In This Topic
    Adds a text string with the specified style to the current paragraph content.
    Syntax
    'Declaration
     
    Public Overloads Function AddText( _
       ByVal text As String, _
       ByVal style As Style _
    ) As ParagraphText
    public ParagraphText AddText( 
       string text,
       Style style
    )

    Parameters

    text
    The text string to add.
    style
    The style to use to render the string.

    Return Value

    A ParagraphText object representing the specified text string.
    Remarks
    This method creates a ParagraphText, initializes it with the specified text and style, and adds it to the current collection.
    See Also