[英]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.
我正在使用richtextbox在电子邮件中发送带格式的文本,但是无法将超链接添加到特定文本。 like my richtextbox contains text "For more information click here" i want to add hyperlink to click here dynamically.
就像我的richtextbox包含文本“有关更多信息,请单击此处”,我想添加超链接以动态单击此处。 Thanks in advance
提前致谢
You can dynamically replace "click here" with 您可以将“点击此处”动态替换为
<a href="your link">click here</a>
Hope it helps :) 希望能帮助到你 :)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.