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

    Show / Hide Table of Contents

    HorzSplitEdit Property

    HorzSplitEdit

    Represents horizontal split view control.

    Declaration
    [Browsable(false)]
    public virtual ISyntaxEdit HorzSplitEdit { get; }
    Property Value
    Type Description
    ISyntaxEdit
    Implements
    ISplitView.HorzSplitEdit
    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.

    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
    
    In This Article
    Back to top Copyright AlterNET Software Download PDF