public static void AppendTextColorful(this RichTextBox rtBox, string text, Color color, bool addNewLine = true)
       {
           if (addNewLine)
           {
               text += Environment.NewLine;
           }
           rtBox.SelectionStart = rtBox.TextLength;
           rtBox.SelectionLength = 0;
           rtBox.SelectionColor = color;
           rtBox.AppendText(text);
           rtBox.SelectionColor = rtBox.ForeColor;
       }

相关文章:

  • 2021-11-13
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-10
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-12
  • 2022-12-23
  • 2022-12-23
  • 2021-08-26
  • 2021-10-28
相关资源
相似解决方案