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

    Show / Hide Table of Contents

    VertSplitEdit Property

    VertSplitEdit

    Represents an vertical split view control.

    Declaration
    [Browsable(false)]
    public virtual ISyntaxEdit VertSplitEdit { get; }
    Property Value
    Type Description
    ISyntaxEdit
    Implements
    ISplitView.VertSplitEdit
    Remarks

    SyntaxEdit control can be split into two parts via dragging the splitter inside horizontal and vertical scrollbars to provide a split view of the text.

    If split vertically, VertSplitEdit shows the same content as the primary editor; a user can navigate through both editors independently.

    Examples

    Here is how to use a VertSplitEdit in the C# code:

    using Alternet.Editor;
    
    public partial class Form1 : Form
    {
        private void Form1_Load(object sender, EventArgs e)
        {
            var syntaxEdit1 = new Alternet.Editor.SyntaxEdit(this.components);
            syntaxEdit1.Scrolling.Options |= ScrollingOptions.AllowSplitVert | ScrollingOptions.AllowSplitVert;
            syntaxEdit1.SplitViewVert();
            syntaxEdit1.VertSplitEdit.Width = 200;
            syntaxEdit1.VertSplitEdit?.Focus();
        }
    }
    

    Here is how to use a VertSplitEdit in the Visual Basic code:

    Imports Alternet.Editor
    
    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.Scrolling.Options = syntaxEdit1.Scrolling.Options Or ScrollingOptions.AllowSplitVert Or ScrollingOptions.AllowSplitVert
            syntaxEdit1.SplitViewVert()
            syntaxEdit1.VertSplitEdit.Width = 200
            syntaxEdit1.VertSplitEdit?.Focus()
        End Sub
    End Class
    
    In This Article
    Back to top Copyright AlterNET Software Download PDF