Table of Contents

Property WrapAtMargin

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

WrapAtMargin

[Browsable(false)]
public virtual bool WrapAtMargin { get; set; }

Property Value

bool

Examples

Here is how to use a WrapAtMargin 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;
        textEditor.WrapAtMargin = true;
    }
}

Here is how to use a WrapAtMargin 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
        textEditor.WrapAtMargin = True
    End Sub
End Class

Remarks

Setting WrapAtMargin property to true causes text to wrap to a new line when the EditMargin position is reached.