RtfHyperlink

data class RtfHyperlink(val target: String, val content: List<RtfInline>, val kind: RtfHyperlinkKind = RtfHyperlinkKind.Url) : RtfInline(source)

A hyperlink field. For RtfHyperlinkKind.Url the target is an external URL; for RtfHyperlinkKind.Bookmark it is the name of an RtfBookmark elsewhere in the document. The visible, clickable text is the styled content (set underline/color on its runs to taste).

Constructors

Link copied to clipboard
constructor(target: String, content: List<RtfInline>, kind: RtfHyperlinkKind = RtfHyperlinkKind.Url)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard