 | 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
Syntaxprotected override IEnumerable<KeyValuePair<int, int>>? GetWordsForHighlighting(
string haystack
)
Protected Overrides 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