All docs
V21.1
21.2 (EAP/Beta)
21.1
20.2
20.1
The page you are viewing does not exist in version 20.1. This link will take you to the root page.
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

RepositoryItemTextEdit.UseMaskAsDisplayFormat Property

Gets or sets whether the editor uses an Input Mask to format its display value when not focused. This property replaces the UseMaskAsDisplayFormat property beginning with v20.2.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v21.1.dll

Declaration

[DXCategory("Format")]
public virtual bool UseMaskAsDisplayFormat { get; set; }

Property Value

Type Description
Boolean

true, if the editor should use the same mask for display and edit modes; false to use the input mask exclusively for the edit mode.

Remarks

Input Masks restrict data input and allow you to guide users to enter correct values. These masks are in effect only when an editor is focused. Inactive editors can use a different format to display their values (the display format). The following figure illustrates an editor with a “long date” input mask and a “short date” display format.

different mask and display format

If you want the same format for both display and edit modes, enable the UseMaskAsDisplayFormat to avoid setting the same format pattern twice.

See Also