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 Hyperlink style to hyperlinks.
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
.