RichTextBox用它获取文本颜色和字体tyoe [英] RichTextBox get text with it color and font tyoe

查看:174
本文介绍了RichTextBox用它获取文本颜色和字体tyoe的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在里面有RichTextBox,我可以写我的内容。在那个内容中,每个单词都是不同的颜色和不同的字体。现在我需要将该内容发送到具有该多色文本作为正文的电子邮件。请指导我如何获得它。

I am having RichTextBox inside that I able to write my content. In that content each and every words are different color and different font stye. Now I need to sent that content to email with that multi color text as body. Please guide me how to obtain that.

推荐答案

大多数电子邮件客户端无法在RTF中显示电子邮件,而这就是它的实际情况。您无法更改电子邮件客户端。



因此,您需要以HTML格式发送电子邮件。遗憾的是,没有内置的WinForms控件来导出HTML中的格式化文本,因此没有第三方代码就无法完成此任务。



如果没有,请查看以下链接它有帮助。

在C#中创建一个wysiwyg html编辑器
Most email clients can't display email in RTF, and that's just how it is. You can't change the email clients.

So, you need to send the email in HTML. There's no built-in WinForms control to export formatted text in HTML, unfortunately, so there's no way to accomplish this without third-party code.

Check the below link if it helps.
Creating a wysiwyg html editor in C#


这篇关于RichTextBox用它获取文本颜色和字体tyoe的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆