System.Windows.Forms.TextBoxBase.WordWrap Property

Indicates whether a multiline text box control automatically wraps words to the beginning of the next line when necessary.

Syntax

[System.ComponentModel.Localizable(true)]
[System.ComponentModel.DefaultValue(true)]
public bool WordWrap { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

If this property is set to true, horizontal scroll bars are not displayed regardless of the TextBox.ScrollBars property setting.

Note:

In the derived class, System.Windows.Forms.TextBox, text within the control will always wrap regardless of the property setting of this property unless the TextBox.TextAlign property is set to HorizontalAlignment.Left.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0