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();
   }
}




















Home »
  C# Tutorial »
    System »




Array
BitConverter
Boolean
Byte
Char
Console
ConsoleKeyInfo
Convert
DateTime
DateTimeOffset
Decimal
Double
Enum
Environment
Exception
Guid
Int16
Int32
Int64
Math
OperatingSystem
Random
SByte
Single
String
StringComparer
TimeSpan
TimeZone
TimeZoneInfo
Tuple
Tuple
Tuple
Type
UInt16
UInt32
UInt64
Uri
Version