Skip to main content
A newer version of this page is available. .

RepositoryItemMemoEdit.WordWrap Property

Gets or sets a value specifying whether text is automatically wrapped at an editor’s right margin.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v18.2.dll

Declaration

[DXCategory("Behavior")]
[DefaultValue(true)]
[SmartTagProperty("WordWrap", "", SmartTagActionType.RefreshBoundsAfterExecute)]
public bool WordWrap { get; set; }

Property Value

Type Default Description
Boolean **true**

true if an editor always wraps text at the right margin, false if it displays a separate line only following a carriage return character.

Remarks

The WordWrap property controls availability of automatic word wrapping.

If this property is true (the default behavior), long strings are wrapped automatically at the right edge of the memo edit control. Wrapping is cosmetic only - text does not include such implicit (soft) return characters (carriage-return/linefeed characters) except for those explicitly entered. When the WordWrap property is set to true, horizontal scroll bars are not displayed, regardless of the RepositoryItemMemoEdit.ScrollBars setting.

If you set WordWrap to false, the control automatically scrolls horizontally when a user types past its right edge. In this case, the text does not wrap and the user must press ENTER to start a new line (which embeds a carriage-return/linefeed character). A long string without return characters is displayed in a single line.

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