Logo AvalonLog

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

SelectedTextHighlighter(lg)

Full Usage: SelectedTextHighlighter(lg)

Parameters:
Returns: SelectedTextHighlighter

Instance members

Instance member Description

this.ClearHighlight

Full Usage: this.ClearHighlight

Removes the highlighting of all occurrences of the previously selected text. AvalonLog calls this when Escape is pressed.

this.ColorHighlighting

Full Usage: this.ColorHighlighting

Returns: SolidColorBrush

The color used for highlighting other occurrences of the selected text.

Returns: SolidColorBrush

this.IsEnabled

Full Usage: this.IsEnabled

Returns: bool

To enable or disable this highlighter, it is enabled by default.

Returns: bool

this.OnHighlightChanged

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)

Returns: IEvent<string * ResizeArray<int>>

this.OnHighlightCleared

Full Usage: this.OnHighlightCleared

Returns: IEvent<unit>

Occurs when the highlighting gets cleared via ClearHighlight() or by disabling this highlighter.

Returns: IEvent<unit>

this.SelectionChangedDelegate

Full Usage: this.SelectionChangedDelegate

Parameters:
arg0 : EventArgs

this.TextChangedDelegate

Full Usage: this.TextChangedDelegate

Parameters:

To update the count of occurrences via OnHighlightChanged when the text changes.

arg0 : EventArgs

Type something to start searching.