 | ConsoleWordHighlightingRule Constructor (String, ConsoleOutputColor, ConsoleOutputColor) |
Namespace:
NLog.Targets
Assembly:
NLog (in NLog.dll) Version: 5.5.0+1873145cbc26e0312d9481234d69ce7dc68aac4e
Syntaxpublic ConsoleWordHighlightingRule(
string text,
ConsoleOutputColor foregroundColor,
ConsoleOutputColor backgroundColor
)
Public Sub New (
text As String,
foregroundColor As ConsoleOutputColor,
backgroundColor As ConsoleOutputColor
)
Dim text As String
Dim foregroundColor As ConsoleOutputColor
Dim backgroundColor As ConsoleOutputColor
Dim instance As New ConsoleWordHighlightingRule(text, foregroundColor,
backgroundColor)
new :
text : string *
foregroundColor : ConsoleOutputColor *
backgroundColor : ConsoleOutputColor -> ConsoleWordHighlightingRule
Parameters
- text
- Type: SystemString
The text to be matched.. - foregroundColor
- Type: NLog.TargetsConsoleOutputColor
Color of the foreground. - backgroundColor
- Type: NLog.TargetsConsoleOutputColor
Color of the background.
See Also