//後臺修改label控件字體字體
protected
void
Button1_Click(
object
sender, EventArgs e)
this
{
this
.Label1.Font.Size = 55;//方法一:設置字體大小
this.Label1.Font.Size = FontUnit.Larger;//方法二:設置字體大小
this.Label1.Font.Size = FontUnit.Point(42);//方法三:設置字體大小,單位是pt磅
this
.Label1.Font.Bold =
true
;
this
.Label1.Font.Name =
"楷體, 楷體_GB2312, SimKai"
;
//楷體
this
.Label1.ForeColor = System.Drawing.Color.Red;
}