如何添加一个文本框红线(如不良的拼写字)? [英] How to add to a textbox the red line (like bad spelling in Word)?
本文介绍了如何添加一个文本框红线(如不良的拼写字)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我们如何能产生下像下面的图片一个糟糕的拼写字红线的效果:
How can we produce the effect of the red line under a bad spelling word like the image below :
更新
我不希望使用谷歌或任何咒语程序。我想知道如何创建红线的效果。
I do not want to use Google or whatever spell program. I would like to know how to create the effect of the red line.
推荐答案
您可以使用的的RichTextBox 控制,这将允许您设置下划线样式和颜色的下划线文本的任何部分。
You can do this using a RichTextBox control, which will allow you to set the underline style and underline color on any portion of text.
和这里的href="http://geekswithblogs.net/pvidler/archive/2003/10/15/188.aspx">例如的做的正是你想要做的事情的
And here's an example doing exactly what you want to do.
这篇关于如何添加一个文本框红线(如不良的拼写字)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文