Table of Contents

Property VertSplitEdit

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

VertSplitEdit

Represents an vertical split view control.

[Browsable(false)]
public virtual ISyntaxEdit VertSplitEdit { get; }

Property Value

ISyntaxEdit

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

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.