2012年5月24日

C#中String对象转换为Font对象的方法

摘要: FontConverter fc = new FontConverter(); //转换为文本形式 string strf= fc.ConvertToInvariantString(button1.Font); Console.WriteLine("字符形式的Font:" + strf); //从文本到字体 Font f = (Font)fc.ConvertFromString(strf); button2.Font = f; 阅读全文

posted @ 2012-05-24 16:59 MyBeN 阅读(1281) 评论(0) 推荐(0) 编辑

导航