下划线标签文字 [英] Underline Label Text

查看:107
本文介绍了下划线标签文字的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的朋友,

我需要在运行时以编程方式在标签控件的文本下划线.我怎么能达到相同的目的呢?

谢谢

Varun Sareen

Dear Friends,

i need to underline the text of the label control programmatically at runtime. How can i achieve the same.

Thanks

Varun Sareen

推荐答案

动态设置标签文本,使用下面的代码并将其更改为您的格式.

lbl.Text ="帮助台";
set the label text dynamically, use below code and change this into your format.

lbl.Text = "Help Desk";


嗨 试试这个

hi try this

labelID.Style.Add("text-decoration", "underline");


这篇关于下划线标签文字的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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