• HOME
  • PRODUCTS
  • DEMOS
  • BUY
  • BLOG
  • FORUM
  • DOCUMENTATION
  • ABOUT
  • FREE EVALUATION
Search Results for

    Show / Hide Table of Contents

    HighlightSearchResults Property

    HighlightSearchResults

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

    Declaration
    [Browsable(false)]
    public bool HighlightSearchResults { get; set; }
    Property Value
    Type Description
    Boolean
    Implements
    ISearch.HighlightSearchResults
    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.

    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
    
    In This Article
    Back to top Copyright AlterNET Software Download PDF