テキストボックスがあり、名前が Rich
付けられていますtextBox1
これを試すと:
textBox1.AppendText(value);
textBox1.SelectionColor = Color.Red;
これにRed
は下線が引かれ、エラーが表示されます:
Error 2 'string' does not contain a definition for 'Red' and no extension method 'Red' accepting a first argument of type 'string' could be found (are you missing a using directive or an assembly reference?) Form1.cs 73 57