Click or drag to resize

ConsoleWordHighlightingRule Class

Highlighting rule for Win32 colorful console.
Inheritance Hierarchy
SystemObject
  NLog.TargetsConsoleWordHighlightingRule

Namespace:  NLog.Targets
Assembly:  NLog (in NLog.dll) Version: 5.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
Syntax
public class ConsoleWordHighlightingRule

The ConsoleWordHighlightingRule type exposes the following members.

Constructors
  NameDescription
Public methodConsoleWordHighlightingRule
Initializes a new instance of the ConsoleWordHighlightingRule class.
Public methodConsoleWordHighlightingRule(String, ConsoleOutputColor, ConsoleOutputColor)
Initializes a new instance of the ConsoleWordHighlightingRule class.
Top
Properties
  NameDescription
Public propertyBackgroundColor
Gets or sets the background color.
Public propertyCompiledRegex
Gets the compiled regular expression that matches either Text or Regex property. Only used when CompileRegex is true.
Public propertyCompileRegex
Compile the Regex? This can improve the performance, but at the costs of more memory usage. If false, the Regex Cache is used.
Public propertyCondition
Gets or sets the condition that must be met before scanning the row for highlight of words
Public propertyForegroundColor
Gets or sets the foreground color.
Public propertyIgnoreCase
Gets or sets a value indicating whether to ignore case when comparing texts.
Public propertyRegex
Gets or sets the regular expression to be matched. You must specify either text or regex.
Public propertyText
Gets or sets the text to be matched. You must specify either text or regex.
Public propertyWholeWords
Gets or sets a value indicating whether to match whole words only.
Top
See Also