RichTextBox默认情况下会根据用户输入的字符来自动设置字体样式,要想让输入保持制定的格式需要设置它的LanguageOption属性。

设置代码为:

this.RichTextBox1.LanguageOption = RichTextBoxLanguageOptions.UIFonts;

相关文章:

  • 2021-07-03
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-26
  • 2021-11-30
  • 2021-04-16
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-09-17
  • 2021-12-11
  • 2021-11-12
相关资源
相似解决方案