使用FontDialog组件设置字体

实现效果:

  

知识运用:

  FontDialog组件的Font属性    //获取或设置选定的字体

  public Font Font  { get;set; }

实现代码:

        private void button1_Click(object sender, EventArgs e)
        {
            fontDialog1.ShowDialog();
                textBox1.Font=fontDialog1.Font;
        }
原文地址:https://www.cnblogs.com/feiyucha/p/10182294.html