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

    Show / Hide Table of Contents

    NavigateOptions Property

    NavigateOptions

    Gets or sets navigating options.

    Declaration
    public virtual NavigateOptions NavigateOptions { get; set; }
    Property Value
    Type Description
    NavigateOptions
    Implements
    INavigate.NavigateOptions
    Remarks

    NavigateOptions determines how the user can navigate through the SyntaxEdit control.

    For instance, setting MoveOnRightButton option allows moving the caret when the user clicks the right mouse button.

    Examples

    Here is how to use a NavigateOptions 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.NavigateOptions |= NavigateOptions.MoveOnRightButton | NavigateOptions.BeyondEof;
        }
    }
    

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