![]() |
VOOZH | about |
Console.ResetColor() Method is used to the foreground and background console colors to their defaults i.e. background to black and foreground to white.
Syntax:
public static void ResetColor ();
Exceptions:
Below programs illustrate the use of the above-discussed method:
Example 1: Setting the console colors to red and yellow
Output:
Example 2: Resetting the colors to default