您的位置:程序门 -> .net技术 -> c#



如何给字符串加上划线和下划线??


[收藏此页] [打印本页]选择字色:背景色:字体:[][][]


如何给字符串加上划线和下划线??
发表于:2007-01-15 09:27:28 楼主
如何给字符串加上上划线和下划线??
发表于:2007-01-15 09:31:051楼 得分:0
边框选择上   下单线?
发表于:2007-01-15 09:33:342楼 得分:0
加下线好加,可是上线真不知道...
发表于:2007-01-15 09:39:143楼 得分:0
比如从数据库中读出字符串   abcdedf
我要将edf加上上划线,然后输出

hbxtlhx下划线怎么加啊   ?
发表于:2007-01-15 09:42:334楼 得分:0
下线可以参考font.underline   属性:获取一个值,该值指示此   font   是否有下划线。
发表于:2007-01-15 09:50:195楼 得分:0
下划线是font的属性,font.underline   =   true就可以了
发表于:2007-01-15 09:51:416楼 得分:0
<style   type= "text/css ">
a:link   {
color:   #000000;   text-decoration:   none}
a:visited   {
color:   #000000;   text-decoration:   none}
a:active   {
text-decoration:   none}
a:hover   {
color:   #000000; text-decoration:   underline   overline}
</style>
发表于:2007-01-15 09:53:447楼 得分:0
jrl5365(king007)

我是在cs里
发表于:2007-01-15 09:53:538楼 得分:0
下划线    
this.textedit1.font   =   new   font( "宋体 ",   fontstyle.underline,   graphicsunit.point,   ((byte)(0)));
发表于:2007-01-15 09:58:549楼 得分:0
下划线用font实现,
上划线在paint方法中自绘吧.
发表于:2007-01-15 10:39:0810楼 得分:0
for   example:

this.label1.font   =   new   font( "宋体 ",   12,   fontstyle.underline);
                        this.label1.text   =   "test ";
                        this.textbox1.font   =   new   font( "宋体 ",   12,   fontstyle.underline);
                        this.textbox1.text   =   "test ";


快速检索

最新资讯
热门点击