如何打印彩色文本 [英] How to print color text
本文介绍了如何打印彩色文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
if (counter == 0)
textBox2.Text += "ERROR: the item in the " + j + "th row is wrong" + Environment.NewLine;
如何在TextBox中打印j变量Red?
How do I print j variable Red when it appears in TextBox?
推荐答案
您可以只改变整个字体的颜色。使用 textBox2.ForeColor = Color.Red
You can just change the color for the whole font. Use textBox2.ForeColor = Color.Red
或使用 RichTextBox
这篇关于如何打印彩色文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文