System.Console.ResetColor Method

Sets the foreground and background console colors to their defaults.

Syntax

public static void ResetColor ()

Remarks

The foreground and background colors are restored to the colors that existed when the current process began. For more information, see the Console.ForegroundColor and Console.BackgroundColor properties.

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0