Reports for WinForms | ComponentOne
C1.C1Report.4 Assembly / C1.C1Preview Namespace / ParagraphObjectCollection Class / AddText Method / AddText(String,Font,Color,TextPositionEnum) Method
The text string to add.
The font to use to render the string.
The text color to use to render the string.
The text position to use to render the string.

In This Topic
    AddText(String,Font,Color,TextPositionEnum) Method
    In This Topic
    Adds a text string with the specified font, text color and position to the current paragraph content.
    Syntax
    'Declaration
     
    Public Overloads Function AddText( _
       ByVal text As String, _
       ByVal font As Font, _
       ByVal textColor As Color, _
       ByVal textPosition As TextPositionEnum _
    ) As ParagraphText
    public ParagraphText AddText( 
       string text,
       Font font,
       Color textColor,
       TextPositionEnum textPosition
    )

    Parameters

    text
    The text string to add.
    font
    The font to use to render the string.
    textColor
    The text color to use to render the string.
    textPosition
    The text position 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, font, text color and position, and adds it to the current collection.
    See Also