Table of Contents

Property HighlightMatchingBlocks

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

HighlightMatchingBlocks

Specifies that edit control should highlight begin/end blocks.

public virtual bool HighlightMatchingBlocks { get; set; }

Property Value

bool

Examples

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

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

Remarks

Setting HighlightMatchingBlocks property to the true enables the TextEditor control to highlight matching parts of the syntax block, like the start and end of the class or method declaration in the Visual Basic code.