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

    Show / Hide Table of Contents

    HighlightCurrentBlock Property

    HighlightCurrentBlock

    Specifies that SyntaxEdit control should highlight current block.

    Declaration
    public virtual bool HighlightCurrentBlock { get; set; }
    Property Value
    Type Description
    Boolean
    Implements
    IFindReferences.HighlightCurrentBlock
    Remarks

    Setting the HighlightCurrentBlock property to true enables the SyntaxEdit control to highlight the current syntax block, like a method or class declaration, when the user navigates through the text.

    Examples

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

    Here is how to use a HighlightCurrentBlock 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.HighlightCurrentBlock = True
        End Sub
    End Class
    
    In This Article
    Back to top Copyright AlterNET Software Download PDF