Я пишу консольную программу на C #. Я хотел бы изменить основной и цвет фона текста в консоли.
Console.BackgroundColor//t set the background color for the text. Console.ForegroundColor//to set the foreground color for the text. Console.ResetColor();//set back the foreground color and background color to the default.
Вам нужно только установить
Console.BackgroundColor = ConsoleColor.Blue; Console.ForegroundColor = ConsoleColor.Red;
Читать все об этом на http://www.dotnetperls.com/console-color
Console.ForegroundColor = ConsoleColor.Green; Console.BackgroundColor = Console.Color.White;
Вы должны иметь возможность использовать следующие свойства (ссылки на документацию MSDN):
Console.BackgroundColor
Console.ForegroundColor