fontstyle.Add("下划线", FontStyle.Underline);
//string sty=ini.ReadString("ShowStyle","FontStyle","常规");//使用label显示该字符串正常.
//Font fnt = new Font("微软雅黑", 24, fontstyle[sty]);//提示字典中没有该键值.
string sty = "下划线";
Font fnt = new Font("微软雅黑", 24, fontstyle[sty]);难道是我使用的ini操作类在转换string时有错误?
感谢.
//string sty=ini.ReadString("ShowStyle","FontStyle","常规");//使用label显示该字符串正常.
//Font fnt = new Font("微软雅黑", 24, fontstyle[sty]);//提示字典中没有该键值.
string sty = "下划线";
Font fnt = new Font("微软雅黑", 24, fontstyle[sty]);难道是我使用的ini操作类在转换string时有错误?
感谢.
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货