/// <summary>
        
/// 設置RichTextBox控件中選中的部分的文字突顯
        
/// </summary>
        private void SetRtbTextProperty()
        {
            
//选择文本,從文字控件中選擇從第幾個字符始到第幾個結束的字符
            rtbShow.Select(22);
            
//设置选定文本的字体
            rtbShow.SelectionFont = new Font("Tahoma"12, FontStyle.Bold);
            
//设置选定文本的颜色
            rtbShow.SelectionColor = System.Drawing.Color.Red;
        }

相关文章:

  • 2022-12-23
  • 2021-11-28
  • 2021-08-29
  • 2022-12-23
  • 2021-05-30
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-07-30
  • 2021-11-09
  • 2021-12-19
  • 2022-01-01
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案