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

ConsoleTheme.GetStyle Method

Gets the ConsoleThemeStyle for a specific theme item.

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 virtual ConsoleThemeStyle GetStyle(
	string role,
	LogLevel level,
	LogRecordKind kind,
	ConsoleThemeItem item
)

Parameters

role
Type: System.String
Role of the log record.
level
Type: PostSharp.Patterns.Diagnostics.LogLevel
Level of the log record.
kind
Type: PostSharp.Patterns.Diagnostics.LogRecordKind
Kind of the log record.
item
Type: PostSharp.Patterns.Diagnostics.Backends.Console.ConsoleThemeItem
Kind of item inside the log record.

Return Value

Type: ConsoleThemeStyle
A ConsoleThemeStyle.

Implements

IConsoleTheme.GetStyle(String, LogLevel, LogRecordKind, ConsoleThemeItem)
See Also