PostSharp6.2/API Reference/Post­Sharp.​Patterns.​Diagnostics.​Backends.​Console Namespace/IConsole­Theme Interface/IConsole­Theme Methods/IConsole­Theme.​Get­Style Method

IConsoleTheme.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.2.11.0 (6.2.11.0)
Syntax
C#
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.
See Also