Table of Contents

Property HorzSplitEdit

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

HorzSplitEdit

Represents horizontal split view control.

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

Property Value

ISyntaxEdit

Examples

Here is how to use a HorzSplitEdit 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.SplitViewHorz();
        syntaxEdit1.HorzSplitEdit.Height = 200;
        syntaxEdit1.HorzSplitEdit.Focus();
    }
}

Here is how to use a HorzSplitEdit 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.SplitViewHorz()
        syntaxEdit1.HorzSplitEdit.Height = 200
        syntaxEdit1.HorzSplitEdit.Focus()
    End Sub
End Class

Remarks

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

If split horizontally, HorzSplitEdit shows the same content as the primary editor; users can navigate through both editors independently.