System.Console.ForegroundColor Property

Gets or sets the foreground color of the console.

Syntax

public static ConsoleColor ForegroundColor { get; set; }

Value

Documentation for this section has not yet been entered.

Remarks

A get operation for a Windows-based application, in which a console does not exist, returns ConsoleColor.Gray.

Requirements

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