 | ConsoleWordHighlightingRuleGetWordsForHighlighting Method |
Scans the haystack for words that should be highlighted.
Namespace:
NLog.Targets
Assembly:
NLog (in NLog.dll) Version: 6.0.0+cfb73701cda54e2410b006f649f072e90daef707
Syntaxprotected virtual IEnumerable<KeyValuePair<int, int>>? GetWordsForHighlighting(
string haystack
)
Protected Overridable Function GetWordsForHighlighting (
haystack As String
) As IEnumerable(Of KeyValuePair(Of Integer, Integer))
Dim haystack As String
Dim returnValue As IEnumerable(Of KeyValuePair(Of Integer, Integer))
returnValue = Me.GetWordsForHighlighting(haystack)
abstract GetWordsForHighlighting :
haystack : string -> IEnumerable<KeyValuePair<int, int>>
override GetWordsForHighlighting :
haystack : string -> IEnumerable<KeyValuePair<int, int>>
Parameters
- haystack
- Type: SystemString
Return Value
Type:
IEnumerableKeyValuePairInt32,
Int32List of words with start-position (Key) and word-length (Value)
See Also