PostSharp6.3/API Reference/Post­Sharp.​Patterns.​Diagnostics.​Backends.​Console Namespace/Console­Theme­Style Class/Console­Theme­Style Constructor

ConsoleThemeStyle Constructor

Initializes a new ConsoleThemeStyle.

Namespace:  PostSharp.Patterns.Diagnostics.Backends.Console
Assembly:  PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 6.3.11.0 (6.3.11.0)
Syntax
C#
public ConsoleThemeStyle(
	string ansiCode,
	Nullable<ConsoleColor> foregroundColor,
	Nullable<ConsoleColor> backgroundColor = null
)

Parameters

ansiCode
Type: System.String
The VT ANSI code for the style. This parameter can be null if the whole theme does not support VT ANSI codes.
foregroundColor
Type: System.Nullable<ConsoleColor>
The foreground color (used as a fallback when the console does not support VT ANSI codes).
backgroundColor (Optional)
Type: System.Nullable<ConsoleColor>
The background color (used as a fallback when the console does not support VT ANSI codes).
See Also