合并富文本?
我有一个应用程序,涉及逐个字符地构建富文本,以便一次性撤消所有内容。为了保留该字符的格式,我选择它,然后可以将 SelectedRtf 属性添加到我的 StringBuilder,但是我希望能够将每个富文本字符构建到一个富文本字符串中,以便我可以一次性撤消它。
我的问题是如何将富文本字符串组合成一个大字符串,同时保留每个字符的所有格式。
I have an application which involves building rich text character by character in order to undo it all at once. In order to retain that character's formatting, I select it and then can add the SelectedRtf property to my StringBuilder, however I want to be able to build each Rich Text character into one Rich Text string so that I can undo it in one go.
My question is how can you combine Rich Text strings into one big string while retaining all the formatting for each character.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这样合并它:
merge it this way: