C# Console ResetColor
Description
Console ResetColor
sets the foreground and background
console colors to their defaults.
Syntax
Console.ResetColor
has the following syntax.
public static void ResetColor()
Returns
Console.ResetColor
method returns
Example
using System;// w w w. j a v a2s . c o m
class Example
{
public static void Main()
{
Console.BackgroundColor = ConsoleColor.Black;
Console.ForegroundColor = ConsoleColor.White;
Console.ResetColor();
}
}