PostSharpAPI ReferencePost­Sharp.​Patterns.​Diagnostics.​Backends.​ConsoleConsole­Theme­StyleConsole­Theme­Style
Open sandboxFocus

ConsoleThemeStyle Constructor

ConsoleThemeStyle(String, Nullable<ConsoleColor>, Nullable<ConsoleColor>)

Initializes a new ConsoleThemeStyle.

Declaration
public ConsoleThemeStyle(string ansiCode, Nullable<ConsoleColor> foregroundColor, Nullable<ConsoleColor> backgroundColor = null)
Parameters
Type Name Description
System.String ansiCode

The VT ANSI code for the style. This parameter can be null if the whole theme does not support VT ANSI codes.

System.Nullable<System.ConsoleColor> foregroundColor

The foreground color (used as a fallback when the console does not support VT ANSI codes).

System.Nullable<System.ConsoleColor> backgroundColor

The background color (used as a fallback when the console does not support VT ANSI codes).