我想改變字體顏色和大小的1號線在RichTextBox中RichTextBox的字體
String [] wo = {"hi","hello","11111","he","she"};
richTextBox1.SelectionFont = new Font("Verdana", 10, FontStyle.Regular);
richTextBox1.SelectionColor = Color.Blue;
richTextBox1.SelectedText += Environment.NewLine + wo[0];
richTextBox1.SelectedText += Environment.NewLine + wo[1];
richTextBox1.SelectedText += Environment.NewLine + wo[2];
richTextBox1.SelectedText += Environment.NewLine + wo[3];
richTextBox1.SelectedText += Environment.NewLine + wo[4];
我想改變只是字符串「11111」,並保持休息線爲默認 任何幫助
,做你想保持/恢復的選擇? – 2010-05-22 18:58:59
是的,只需將wo [2]更改爲藍色,並將其餘的保存爲默認 – habbo95 2010-05-22 19:02:17