110,502
社区成员
发帖
与我相关
我的任务
分享
select * from table order by id desc
private void HighLightText(string[] wordList, Color color)
{
foreach (string word in wordList)
{
Regex r = new Regex(word, RegexOptions.IgnoreCase);
foreach (Match m in r.Matches(this.richTextBox1.Text))
{
this.richTextBox1.Select(m.Index, m.Length);
this.richTextBox1.SelectionColor = color;
}
}
}
不知道用循环的方法怎么样,或许其他的方法也行。求实现用颜色只标记包头包尾的代码~谢谢
http://bbs.csdn.net/topics/390530481