110,529
社区成员
发帖
与我相关
我的任务
分享
this.richTextBox1.ForeColor = Color.Red;
this.richTextBox1.AppendText("红的");
this.richTextBox1.SelectionColor = Color.Blue;
this.richTextBox1.AppendText("蓝的");
this.richTextBox1.ForeColor = Color.Red;
this.richTextBox1.AppendText("红的");
this.richTextBox1.SelectionColor = Color.Blue;
this.richTextBox1.AppendText("蓝的");
Me.RichTextBox1.Select(10, 10)
Me.RichTextBox1.SelectionColor = Color.Red
this.richTextBox1.ForeColor = Color.Red;//设置输入字体颜色
this.richTextBox1.AppendText("该颜色的字");//需要以此种颜色显示的字