最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
asp.net中RichTextBox控件添加指定颜色文本例子
时间:2014-12-20 编辑:简简单单 来源:一聚教程网
代码如下 | 复制代码 |
private void AppendText(RichTextBox richTextBox, string str, Color color)
{ richTextBox.AppendText(str); richTextBox.Find(str, RichTextBoxFinds.Reverse); richTextBox.SelectionColor = color; richTextBox.SelectionStart = richTextBox.Text.Length; //取消选中 } |
-
上一个: JSON字符串转C#匿名对象工具
相关文章
- 理解Asp.Net中WebForm的生命周期 06-20
- asp.net中使用母版制作出的页脚效果 05-17
- ASP.NET在使用X509Certificate2出现问题时的一些解决方法 05-16
- ASP.NET 定时器回调方法的重入 04-20
- 剖析Asp.Net Web API路由系统---WebHost部署方式 04-13
- Asp.net用Button打开另一个的frm的教程 12-26