TextEditSettings.AcceptsReturn Property

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

Namespace: DevExpress.Xpf.Editors.Settings

Assembly: DevExpress.Xpf.Core.v20.1.dll

Declaration

public bool AcceptsReturn { get; set; }
Public Property AcceptsReturn As Boolean

Property Value

Type Description
Boolean

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

Property Paths

You can access this nested property as listed below:

Object Type Path to AcceptsReturn
TokenEditorBehavior
.TokenEditSettings.AcceptsReturn
TokenEditorBehavior
.NewTokenEditSettings.AcceptsReturn

Remarks

If the AcceptsReturn property is set to true, the ENTER key is processed by the editor, and results in a new text line. Otherwise, if the AcceptsReturn property is set to false, return characters are ignored. Return characters, however, can be inserted in code by adding appropriate characters (for instance, "\r\n" for C#) to the TextEditBase.Text property.

See Also