c# label字体设置问题,如大小,颜色,粗体这些该如何设置?

2025年03月13日 03:26
有5个网友回答
网友(1):

写法正确,可能是你其他的代码或符号之类的出错了,一个个调试吧.祝好!

网友(2):

Label1.Font.Size
=
FontUnit.Point(15);
再看看别人怎么说的。

网友(3):

Label1.Font.Size = FontUnit.Point(15);

注意下类型!

网友(4):

Label1.Font.Size = FontUnit.Point(15);

网友(5):

VS2005
label1.Font = new Font("SimSun", 20);