Table of Contents

Property BorderStyle

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

BorderStyle

Gets or sets the border style for the SyntaxEdit control.

public virtual EditBorderStyle BorderStyle { get; set; }

Property Value

EditBorderStyle

Examples

Here is how to use a BorderStyle 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.BorderStyle = Alternet.Common.EditBorderStyle.None;
    }
}

Here is how to use a BorderStyle 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.BorderStyle = Alternet.Common.EditBorderStyle.None
    End Sub
End Class

Remarks

You can use the BorderStyle property to change the border style of the SyntaxEdit control to match the border style settings of other controls on the form, or vice versa, separate it. For example, if none of the other controls on your form display a border, you can set the BorderStyle property of the SyntaxEdit control to None.