简体   繁体   中英

Dynamically adding hyperlinks to selected text in RichTextBox text c#

i want to add hyperlink to specific text which is selected. i am using richtextbox for sending formatted text in email but ia unable to add hyperlink to a specific text. like my richtextbox contains text "For more information click here" i want to add hyperlink to click here dynamically. Thanks in advance

You can dynamically replace "click here" with

<a href="your link">click here</a>

Hope it helps :)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM