RepositoryItemMemoEdit.AcceptsReturn Property
Gets or sets a value specifying whether return characters can be inserted into text.
Namespace: DevExpress.XtraEditors.Repository
Assembly: DevExpress.XtraEditors.v24.1.dll
NuGet Package: DevExpress.Win.Navigation
Declaration
Property Value
Type | Default | Description |
---|---|---|
Boolean | true | true if return characters are accepted and processed by a memo editor; otherwise, false. |
Remarks
Use the AcceptsReturn property to control whether a user can insert return characters into memo editor text.
When this property is true (the default behavior), the ENTER key is processed by the editor and results in a new text line.
If the AcceptsReturn property is set to false, return characters are processed by the form. For instance, the ENTER key can activate the form’s default button (if any). You specify the default button for your form via the form’s AcceptButton property. It is possible, however, to insert return characters into the memo editor’s text via code by adding appropriate characters (for instance, “\r\n” for C#) to the BaseEdit.Text property.
Assigning a new value for the AcceptsReturn property at runtime raises the RepositoryItem.PropertiesChanged event.