Skip to main content

RepositoryItemMemoEdit.AcceptsTab Property

Gets or sets a value specifying whether a user can insert tab characters into text.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v24.2.dll

Declaration

[DefaultValue(false)]
[DXCategory("Behavior")]
public bool AcceptsTab { get; set; }

Property Value

Type Default Description
Boolean false

true if users can enter tabs in a memo editor using the TAB key; false if pressing the TAB key moves focus to another control.

Remarks

Use the AcceptsTab property to control the ability of a user to insert tab characters into memo editor text.

When this property is false (the default behavior), pressing the TAB key within a memo editor moves focus to the next control (according to the tab order). It is possible, however, to insert tab characters into the memo editor’s text via code by adding/inserting the “\t” string (C#) to the BaseEdit.Text property.

Set the AcceptsTab property to true to allow users to enter TAB characters( to align the memo editor’s text). If this property is true, users can tab into the memo edit control, but cannot tab out.

Assigning a new value to AcceptsTab at runtime raises the RepositoryItem.PropertiesChanged event.

See Also