Table of Contents

Property HighlightSearchResults

Namespace
Alternet.Editor
Assembly
Alternet.Editor.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 Form1 : Form
{
    private void Form1_Load(object sender, EventArgs e)
    {
        var syntaxEdit1 = new Alternet.Editor.SyntaxEdit(this.components);
        syntaxEdit1.HighlightSearchResults = true;
    }
}

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

Partial Public Class Form1
    Inherits Form

    Private Sub Form1_Load(ByVal sender As Object, ByVal e As EventArgs)
        Dim syntaxEdit1 = New Alternet.Editor.SyntaxEdit(Me.components)
        syntaxEdit1.HighlightSearchResults = True
    End Sub
End Class

Remarks

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