首页 文章

如何在没有丢失链接的情况下将RichTextBox保存在文件或sql中?

提问于
浏览
1

我在Richtextbox中有一个链接并且它工作正常,但如果我将Richtextbox保存到文件中然后加载该链接以进行删除,我只能看到该链接的文本

How can i save richtextbox in a file or sql without lost links?

例如我的Richtextbox有底部文本:

This is a link

但在保存并再次加载文件后我才能看到文字:

这是一个链接

这是我尝试使用以下代码在我的Richtextbox中设置的字符串值:richTextBox1.Rtf = str;

{\ rtf1 \ ansi \ ansicpg1252 \ deff0 \ deflang1033 {\ fonttbl {\ f0 \ fnil \ fcharset0 Microsoft Sans Serif;}} \ viewkind4 \ uc1 \ pard \ f0 \ fs16链接文本\ v #Hyperlink text \ v0 \ par}

1 回答

相关问题