开发者

How to add font color to a .net console app?

Is there a way to color the font of certain lines in a console app in .net?

Than开发者_如何学JAVAks


Console.BackgroundColor = ConsoleColor.Blue;
Console.ForegroundColor = ConsoleColor.Yellow;


http://msdn.microsoft.com/en-us/library/system.console.foregroundcolor.aspx

You can change the foreground and background colors of the console. The foreground color is of course the text.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜