PrintDocument for WinForms | ComponentOne
C1.PrintDocument.4.8 Assembly / C1.C1Preview Namespace / ParagraphObjectCollection Class / AddHyperlink Method / AddHyperlink(String,RenderObject) Method
The text string to add.
A RenderObject which is the target of the hyperlink.

In This Topic
    AddHyperlink(String,RenderObject) Method
    In This Topic
    Adds a text hyperlink to the current paragraph content.
    Syntax
    'Declaration
     
    Public Overloads Function AddHyperlink( _
       ByVal text As String, _
       ByVal renderObject As RenderObject _
    ) As ParagraphText
    public ParagraphText AddHyperlink( 
       string text,
       RenderObject renderObject
    )

    Parameters

    text
    The text string to add.
    renderObject
    A RenderObject which is the target of the hyperlink.

    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, sets the ParagraphObject.Hyperlink on that object to a C1Hyperlink initialized with renderObject, and adds it to the current collection.
    See Also