Console.BackgroundColor : Console « System « C# / C Sharp by API






Console.BackgroundColor

 
using System;

public class Test{
   static void Main(string[] args){
      Console.Title = "Standard Console";
      Console.ForegroundColor = ConsoleColor.Red;
      Console.BackgroundColor = ConsoleColor.Green;
      Console.WriteLine("Press Enter to change the Console's appearance.");
      Console.ReadLine();
  }
}

   
  








Related examples in the same category

1.Console.Beep()
2.Console.Beep(200, 300)
3.Console.BufferHeight
4.Console.BufferWidth
5.Console.Clear()
6.Console.CursorLeft
7.Console.CursorSize
8.Console.CursorTop
9.Console.CursorVisible
10.Console.ForegroundColor
11.Console.In
12.Console.Out
13.Console.Read()
14.Console.ReadLine()
15.Console.ResetColor()
16.Console.SetOut
17.Console.SetWindowSize
18.Console.Title
19.Console.Write
20.Console.WriteLine