高级控制台IO在.NET控制台、高级、NET、IO

由网友(张亮的天天我要买)分享简介:什么是数据写入文本控制台屏幕上,并定制前/背景颜色?What is the best way to write data to the text console at arbitrary locations on the screen and with custom fore/background colors?推...

什么是数据写入文本控制台屏幕上,并定制前/背景颜色?

What is the best way to write data to the text console at arbitrary locations on the screen and with custom fore/background colors?

推荐答案

Console.SetCursorPosition,Console.BackgroundColor,Console.ForegroundColor和Console.ResetColor。

Console.SetCursorPosition, Console.BackgroundColor, Console.ForegroundColor, and Console.ResetColor.

请注意这些被添加到.NET Framework 2.0版。在此之前,你会需要的PInvoke。

Note these were added to the .NET Framework in version 2.0. Prior to that you would have needed PInvoke.

阅读全文

相关推荐

最新文章