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

ConsoleThemeStyle Class

Represents a style in a console theme.

Inheritance
ConsoleThemeStyle
Namespace: PostSharp.Patterns.Diagnostics.Backends.Console
Assembly: PostSharp.Patterns.Diagnostics.dll
Syntax
public sealed class ConsoleThemeStyle : Object

Constructors

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

Initializes a new ConsoleThemeStyle.

Properties

Name Description
AnsiCode

Gets the VT ANSI code for the style.

BackgroundColor

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

ForegroundColor

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