一行中的富文本框中的多种颜色 [英] multiple color in a richtext box in a single line

查看:195
本文介绍了一行中的富文本框中的多种颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我在数据库中有一个单词集合,如何找到该单词的形式?
如果单词在数据库中匹配,则该单词的颜色应该为绿色,否则颜色必须为红色.

if i have a collection of word in a database and how can i find that word in a form ?
if a word match in a database then the color of that word should be green else color must be red.

推荐答案

这应该以非常漂亮的方式给出答案
http://www.dotnetperls.com/richtextbox
this should give your answer in a very beautiful way
http://www.dotnetperls.com/richtextbox


这些将为您提供帮助.
使用C#在RichTextBox中使用多种彩色文本 [ ^ ]
http://stackoverflow.com/questions/15457402/change-string-color-in-rich-text-box-if-it-contains-x [ http://stackoverflow.com/questions/1926264/color-different-parts- of-a-richtextbox-string [ ^ ]
http://stackoverflow.com/questions/6319546/how-to-color-different-words-in-a-richtextbox-with-different-colors [ http://stackoverflow.com/questions/13220856/how-to-use- multi-color-in-richtextbox [ ^ ]
These will help you..
Multiple Colored Texts in RichTextBox using C#[^]
http://stackoverflow.com/questions/15457402/change-string-color-in-rich-text-box-if-it-contains-x[^]
http://stackoverflow.com/questions/1926264/color-different-parts-of-a-richtextbox-string[^]
http://stackoverflow.com/questions/6319546/how-to-color-different-words-in-a-richtextbox-with-different-colors[^]
http://stackoverflow.com/questions/13220856/how-to-use-multi-color-in-richtextbox[^]


这篇关于一行中的富文本框中的多种颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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