Skip to main content

RepositoryItemMemoEdit.WordWrap Property

Gets or sets whether the editor automatically wraps words to the beginning of the next line when necessary.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v23.2.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

[DefaultValue(true)]
[DXCategory("Behavior")]
public bool WordWrap { get; set; }

Property Value

Type Default Description
Boolean true

true if the editor automatically wraps words to the beginning of the next line; otherwise, false.

Remarks

If WordWrap is enabled, the control automatically wraps words to the next line when necessary so users do not need to scroll the text horizontally. The horizontal scroll bar is not displayed regardless of the ScrollBars setting.

If WordWrap is disabled, the control starts a new line only where the text contains a carriage-return/linefeed character. The control automatically scrolls horizontally when a user types past its right edge.

Note

The maximum length of a single text line is limited to 1024 characters. After this limit, the text is wrapped even if the WordWrap setting is disabled.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the WordWrap property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also