SelectedTextHighlighter Type
Highlight-all-occurrences-of-selected-text in Log Text View if the selection is more then two non-whitespace characters. The highlighting stays when the selection is removed, till ClearHighlight() is called. (AvalonLog calls it when Escape is pressed.) Selected text never gets this highlighting, because the selection has its own highlighting.
Constructors
| Constructor |
Description
|
Full Usage:
SelectedTextHighlighter(lg)
Parameters:
TextEditor
Returns: SelectedTextHighlighter
|
|
Instance members
| Instance member |
Description
|
Full Usage:
this.ClearHighlight
|
Removes the highlighting of all occurrences of the previously selected text. AvalonLog calls this when Escape is pressed. |
|
The color used for highlighting other occurrences of the selected text.
|
Full Usage:
this.IsEnabled
Returns: bool
|
To enable or disable this highlighter, it is enabled by default.
|
Full Usage:
this.OnHighlightChanged
Returns: IEvent<string * ResizeArray<int>>
|
Occurs when the selection changes to more than two non-whitespace Characters. And when the text changes while there is a highlighting, to update the count. Returns tuple of selected text and list of all start offsets in full text. (including invisible ones)
|
Full Usage:
this.OnHighlightCleared
Returns: IEvent<unit>
|
Occurs when the highlighting gets cleared via ClearHighlight() or by disabling this highlighter.
|
|
|
|
To update the count of occurrences via OnHighlightChanged when the text changes.
|
AvalonLog