ExRichTextEdit 控件下载
ExRichTextEdit 控件下载
从网上找来一个扩展的RichTextEdit组件,支持插入图片,格式文本,设置文本底色等操作,只要调用方法即可。 命名空间:Khendys.Controls.ExRichTextEdit 格式化文本及插入图片Demo: 使用方法: private void menuItem10_Click(object sender, System.EventArgs e) { string[] _about = new string[10]; Font[] _fonts = new Font[3]; rtBox_Main.Rtf = ""; _fonts[0] = new Font(FontFamily.GenericSerif, 16f); _fonts[1] = new Font(FontFamily.GenericSansSerif, 12f); _fonts[2] = new Font(FontFamily.GenericMonospace, 8f); _about[0] = "This text and images are "; _about[1] = "being inserted on the\n"; _about[2] = "Click "; _about[3] = "event of this menu item.\n\n"; _about[4] = "Sorry I cleared the document, "; _about[5] = " but just click "; _about[6] = "undo "; _about[7] = "and you'll be ok. "; _about[8] = "\n\nHa Ha! No undo.\n\n"; _about[9] = "Khendys was here ..."; rtBox_Main.InsertTextAsRtf(_about[0], _fonts[0]); rtBox_Main.InsertTextAsRtf(_about[1], new Font(_fonts[1], FontStyle.Strikeout)); rtBox_Main.InsertTextAsRtf(_about[2], new Font(_fonts[0], FontStyle.Bold | FontStyle.Italic), RtfColor.Olive, RtfColor.Aqua); rtBox_Main.InsertTextAsRtf(_about[3], new Font(_fonts[1], FontStyle.Italic), RtfColor.Gray); rtBox_Main.InsertTextAsRtf(_about[4], new Font(_fonts[2], FontStyle.Bold), RtfColor.Red, RtfColor.Yellow); rtBox_Main.InsertImage(new Bitmap(typeof(RtfInsert), "Smilies.AngrySmile.png")); rtBox_Main.InsertTextAsRtf(_about[5], _fonts[0]); rtBox_Main.InsertTextAsRtf(_about[6], _fonts[0], RtfColor.Blue, RtfColor.Aqua); rtBox_Main.InsertTextAsRtf(_about[7], _fonts[1]); rtBox_Main.InsertImage(new Bitmap(typeof(RtfInsert), "Smilies.CrySmile.png")); rtBox_Main.InsertTextAsRtf(_about[8], new Font(_fonts[2], FontStyle.Bold | FontStyle.Italic), RtfColor.Red, RtfColor.Aqua); rtBox_Main.InsertTextAsRtf(_about[9], new Font(_fonts[1], FontStyle.Italic | FontStyle.Bold | FontStyle.Underline), RtfColor.Black, RtfColor.Red); rtBox_Main.InsertImage(new Bitmap(typeof(RtfInsert), "Smilies.Beer.png")); }
参考文档:
C# ImageListView控件下载(源代码) ERP标准流程DOC文档下载 C#,Asp.Net多线程断点续传下载 [下载]超好用高效率SQL客户端查询分析器(sqldbx) C# 数据窗体实现增删改查(CRUD)源码下载(原) [原创]C#键盘勾子(Hook),屏蔽键盘活动.(源代码下载) CS开发框架新增两个报表模块 (源码下载) [下载]DataSet Remoting(DataSetSurrogate) C#.Net用户自定义控件制作教程 [原创]递归读取DataTable加载TreeList控件 控件与组件的区别(Control&Component的区别) Winform 快速初始化Dev TreeList树控件的数据 LookUpEdit控件带给用户良好的操作体验 ucWindowTitle用户控件 - 用户界面规范控件 使用Scheduler控件实现生产进度监控程序
其它资料:
什么是C/S结构? | C/S框架核心组成部分 | C/S框架-WebService部署图 | C/S框架-权限管理 | C/S结构系统框架 - 5.1旗舰版介绍 | C/S结构系统框架 - 功能介绍 | C/S结构系统框架 - 产品列表 | C/S结构系统框架 - 应用展示(图) | 三层体系架构详解 | C/S架构轻量级快速开发框架 | C/S框架网客户案例 | WebApi快速开发框架 | C/S框架代码生成器 | 用户授权注册软件系统 | 版本自动升级软件 | 数据库底层应用框架 | CSFramework.CMS内容管理系统 | |