C#中RichTextBox字体不统一(中英文)

时间:2021-09-27 04:05:29


this.richTextBox1.Font = new System.Drawing.Font("微软雅黑", 12F);// new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); richTextBox1.LanguageOption = System.Windows.Forms.RichTextBoxLanguageOptions.UIFonts;

//属性中添加第二句 搞定

richTextBox1.LanguageOption = System.Windows.Forms.RichTextBoxLanguageOptions.UIFonts;


C#中RichTextBox字体不统一(中英文)

标签:

原文地点:https://www.cnblogs.com/jason2004/p/8634983.html