Reports for WinForms | ComponentOne
C1.C1Report.4 Assembly / C1.C1Preview Namespace / ParagraphObjectCollection Class / AddHyperlink Method / AddHyperlink(String,C1LinkTarget,Style) Method
The text string to add.
A C1LinkTarget which is the target of the hyperlink.
A style used to render the string.

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

    Parameters

    text
    The text string to add.
    target
    A C1LinkTarget which is the target of the hyperlink.
    style
    A style used to render the string.

    Return Value

    A ParagraphText object representing the specified text string, associated with the specified hyperlink.
    Remarks
    This method creates a ParagraphText, initializes it with the specified text and style, sets the ParagraphObject.Hyperlink on that object to a C1Hyperlink initialized with target, and adds it to the current collection.
    See Also