单击标签时字体大小问题 [英] Font Size Problem when i click lable

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

问题描述

我有问题,当我将我的标签字体设置为8,当我点击标签时,它给出的字体大小为8.5



我的代码是



lblText.font =新字体(Arial,8,0)



当我点击标签然后提示我标签大小为8.25

i have problem when i set my lable font as 8 and when i click on label than it give font size as 8.5

my code is

lblText.font=new font("Arial",8,0)

and when i click on label then prompt me label size as 8.25

推荐答案

嗨Haresh,



尝试设置fontfamily和font.style像这样:



Hi Haresh,

Try setting the fontfamily and font.style like this :

lbltext.Font = New Font(New FontFamily("Arial"), 8.5, FontStyle.Regular)





我希望这可以帮到你,

VG



I hope this could help you,
VG


这篇关于单击标签时字体大小问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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