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