2011-07-28 10 views

答えて

9
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. 
+0

Windows APIを使用する必要はありません。 – king9981

2

でそれについてのすべてを読む

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

を設定するだけで済みます

Console.ForegroundColor

4
Console.ForegroundColor = ConsoleColor.Green; 
Console.BackgroundColor = Console.Color.White; 
関連する問題