FontConverter fc = new FontConverter();
            //转换为文本形式
            string strf= fc.ConvertToInvariantString(button1.Font);
            Console.WriteLine("字符形式的Font:" + strf);

            //从文本到字体
            Font f = (Font)fc.ConvertFromString(strf);
            button2.Font = f;

相关文章:

  • 2021-05-31
  • 2022-02-15
  • 2022-12-23
  • 2022-01-17
  • 2022-12-23
  • 2021-09-22
  • 2021-07-24
猜你喜欢
  • 2022-03-10
  • 2021-11-21
  • 2021-08-19
  • 2022-12-23
  • 2022-12-23
  • 2022-01-11
相关资源
相似解决方案