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

    Show / Hide Table of Contents

    WrapAtMargin Property

    WrapAtMargin

    Gets or sets a value indicating whether control automatically wraps words at margin position.

    Declaration
    public virtual bool WrapAtMargin { get; set; }
    Property Value
    Type Description
    Boolean
    Implements
    IWordWrap.WrapAtMargin
    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 Form1 : Form
    {
        private void Form1_Load(object sender, EventArgs e)
        {
            var syntaxEdit1 = new Alternet.Editor.SyntaxEdit(this.components);
            syntaxEdit1.WordWrap = true;
            syntaxEdit1.WrapAtMargin = true;
        }
    }
    

    Here is how to use a WrapAtMargin 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
            syntaxEdit1.WrapAtMargin = True
        End Sub
    End Class
    
    In This Article
    Back to top Copyright AlterNET Software Download PDF