C# 修改字体大小 样式的一些基础知识
txtName 是Textbox文本框
1 单纯修改字体 txtName.Font = new Font("仿宋", txtName.Font.Size, txtName.Font.Style);
2 单纯修改字体样式 txtName.Font = new Font(txtName.Font, txtName.Font.Style | FontStyle.Bold); (在原有样式中加) ^(与是本来有该种样式的变为没有);
3 初始话字体 txtName.Font = new Font("宋体",20,FontStyle.Regular);