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

ConsoleTheme Class

A simple implementation of a color theme that allows only for two colors per LogLevel.
Inheritance Hierarchy
System.Object
  PostSharp.Patterns.Diagnostics.Backends.Console.ConsoleTheme

Namespace:  PostSharp.Patterns.Diagnostics.Backends.Console
Assembly:  PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 6.0.35.0 (6.0.35.0)
Syntax
C#
public class ConsoleTheme : IConsoleTheme

The ConsoleTheme type exposes the following members.

Constructors
  NameDescription
Public methodConsoleTheme(Boolean)
Initializes a new ConsoleTheme.
Public methodConsoleTheme(ConsoleTheme)
Initializes a new ConsoleTheme and copies all values from a given other ConsoleTheme.
Properties
  NameDescription
Public propertyHightlightedStyles
Gets the styles used for highlighted text.
Public propertyNormalStyles
Gets the styles used for normal text.
Public propertySupportsAnsiCodes
Determines whether the theme supports VT escape codes.
Methods
  NameDescription
Public methodAddHightlightedItem
Specifies that a ConsoleThemeItem should be formatted using the hightlighted style.
Public methodClone
Returns an editable copy of the current ConsoleTheme.
Public methodFreeze
Prevents modifications in the current ConsoleTheme.
Public methodGetStyle
Gets the ConsoleThemeStyle for a specific theme item.
Public methodRemoveHighlightedItem
Specifies that a ConsoleThemeItem should be formatted using the normal style.
See Also