Method Hyperlink
- Namespace
- BitMiracle.Docotic.Pdf.Layout
- Assembly
- BitMiracle.Docotic.Pdf.Layout.dll
Hyperlink(string, Uri)
Adds hyperlink to the current paragraph.
public TextSpan Hyperlink(string text, Uri url)
Parameters
text
stringThe hyperlink text.
url
UriThe hyperlink URI.
Returns
- TextSpan
The added text.
Remarks
The library automatically applies a combination of text styles to hyperlinks. Read about Hyperlink style for more information about what gets applied.
This method does not complete the current paragraph. I.e., a next text chunk will be placed in the same paragraph.
Exceptions
- ArgumentNullException
text
orurl
isnull
.