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

    Show / Hide Table of Contents

    WrapAtMargin Property

    WrapAtMargin

    Declaration
    [Browsable(false)]
    public virtual bool WrapAtMargin { get; set; }
    Property Value
    Type Description
    Boolean
    Remarks

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

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