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

    Show / Hide Table of Contents

    HighlightMatchingBlocks Property

    HighlightMatchingBlocks

    Specifies that edit control should highlight begin/end blocks.

    Declaration
    public virtual bool HighlightMatchingBlocks { get; set; }
    Property Value
    Type Description
    Boolean
    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.

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