Table of Contents

Property HighlightSearchResults

Namespace
Alternet.Editor.Wpf
Assembly
Alternet.Editor.Wpf.v9.dll

HighlightSearchResults

Indicates whether search results are highlighted while the search dialog is open.

[Browsable(false)]
public bool HighlightSearchResults { get; set; }

Property Value

bool

Examples

Here is how to use a HighlightSearchResults in the C# code:

public partial class MainWindow : Window
{
    private void Window_Loaded(object sender, RoutedEventArgs e)
    {
        var textEditor = new Alternet.Editor.Wpf.TextEditor();
        textEditor.HighlightSearchResults = true;
    }
}

Here is how to use a HighlightSearchResults in the Visual Basic code:

Partial Public Class MainWindow

    Private Sub Window_Loaded(ByVal sender As Object, ByVal e As RoutedEventArgs)
        Dim textEditor = New Alternet.Editor.Wpf.TextEditor()
        textEditor.HighlightSearchResults = True
    End Sub
End Class

Remarks

Setting HighlightSearchResults property to the true enables the TextEditor control to highlight all parts of the text matching specified search criteria when the user types text in the search dialog.