Click or drag to resize

ConsoleWordHighlightingRuleRegexGetWordsForHighlighting Method

Scans the haystack for words that should be highlighted.

Namespace:  NLog.Targets
Assembly:  NLog.RegEx (in NLog.RegEx.dll) Version: 6.0.3+e276e1969a52b8ecc5cc84c1670a516efea0cb19
Syntax
protected override IEnumerable<KeyValuePair<int, int>>? GetWordsForHighlighting(
	string haystack
)

Parameters

haystack
Type: SystemString

Return Value

Type: IEnumerableKeyValuePairInt32, Int32
List of words with start-position (Key) and word-length (Value)
See Also