Font txtfont;
//粗体
txtfont = new System.Drawing.Font("宋体", float.Parse("12"), (FontStyle)Enum.Parse(typeof(FontStyle), "Bold"), System.Drawing.GraphicsUnit.Point, ((byte)(134)));
//粗体+斜体
txtfont = new System.Drawing.Font("宋体", float.Parse("12"), (FontStyle)Enum.Parse(typeof(FontStyle), "Italic") ^ (FontStyle)Enum.Parse(typeof(FontStyle), "Italic"), System.Drawing.GraphicsUnit.Point, ((byte)(134)));
c# 字体格式设定
最新推荐文章于 2024-05-18 15:18:46 发布