Click or drag to resize

ConsoleWordHighlightingRule Class

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

Namespace:  NLog.Targets
Assembly:  NLog (in NLog.dll) Version: 6.0.0+cfb73701cda54e2410b006f649f072e90daef707
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 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 propertyText
Gets or sets the text to be matched for Highlighting.
Public propertyWholeWords
Gets or sets a value indicating whether to match whole words only.
Public propertyWords
Gets or sets the list of words to be matched for Highlighting.
Top
Methods
  NameDescription
Protected methodGetWordsForHighlighting
Scans the haystack for words that should be highlighted.
Top
See Also