Table of Contents

Property WordWrap

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

WordWrap

Gets or sets a value indicating whether TextEditor control automatically wraps words to the beginning of the next line when necessary.

public bool WordWrap { get; set; }

Property Value

bool

Examples

Here is how to use a WordWrap in the C# code:

public partial class MainWindow : Window
{
    private void Window_Loaded(object sender, RoutedEventArgs e)
    {
        var textEditor = new Alternet.Editor.Wpf.TextEditor();
        textEditor.WordWrap = true;
    }
}

Here is how to use a WordWrap in the Visual Basic code:

Partial Public Class MainWindow
    Private Sub Window_Loaded(ByVal sender As Object, ByVal e As RoutedEventArgs)
        Dim textEditor = New Alternet.Editor.Wpf.TextEditor()
        textEditor.WordWrap = True
    End Sub
End Class

Remarks

Setting WordWrap property to true causes text to wrap to a new line when the edge of the TextEditor control is reached. Setting WordWrap property to false automatically scrolls horizontally when the user types past the right edge of the TextEditor control.