Skip to main content

TextEdit.AcceptsReturn Property

Gets or sets whether an end-user can insert return characters into a text. This is a dependency property.

Namespace: DevExpress.UI.Xaml.Editors

Assembly: DevExpress.UI.Xaml.Editors.v21.2.dll

NuGet Package: DevExpress.Uwp.Controls

Declaration

public bool AcceptsReturn { get; set; }

Property Value

Type Description
Boolean

true, to allow return characters to be accepted and processed by the editor; otherwise, false.

Remarks

If the AcceptsReturn property is set to true, return characters inserted in code by adding appropriate characters (for instance, “\r\n” for C#) to the TextEdit.Text property are processed by the editor, and result in a new text line. If the AcceptsReturn property is set to false, any text after the return characters will be ignored when assigned to the TextEdit.Text property.

See Also