WordWrap Property
WordWrap
Gets or sets a value indicating whether control automatically wraps words to the beginning of the next line when necessary.
Declaration
public virtual bool WordWrap { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Implements
Remarks
Setting WordWrap property to true causes text to wrap to a new line when the edge of the SyntaxEdit control is reached. Setting WordWrap property to false automatically scrolls horizontally when the user types past the right edge of the SyntaxEdit control.
Examples
Here is how to use a WordWrap 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.WordWrap = true;
}
}
Here is how to use a WordWrap 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.WordWrap = True
End Sub
End Class