Table of Contents

Property HighlightReferences

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

HighlightReferences

Specifies that edit control should highlight find references.

public virtual bool HighlightReferences { get; set; }

Property Value

bool

Examples

Here is how to use a HighlightReferences 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.HighlightReferences = true;
    }
}

Here is how to use a HighlightReferences 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.HighlightReferences = True
    End Sub
End Class

Remarks

Setting HighlightReferences property to the true enables the TextEditor control to highlight all occurrences of the symbol under the caret, like a local variable, parameter, property, or field.