Adds a text hyperlink with a specified style to the current paragraph content.
Namespace:
C1.C1PreviewAssembly: C1.C1Report.2 (in C1.C1Report.2.dll)
Syntax
C# |
---|
public ParagraphText AddHyperlink( string text, string anchorName, Style style ) |
Visual Basic |
---|
Public Function AddHyperlink ( _ text As String, _ anchorName As String, _ style As Style _ ) As ParagraphText |
Parameters
- text
- Type: System..::..String
The text string to add.
- anchorName
- Type: System..::..String
The name of the anchor which is the target of the hyperlink.
- style
- Type: C1.C1Preview..::..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 Hyperlink on that object to a
C1Hyperlink initialized with anchorName,
and adds it to the current collection.