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.v24.1.dll
NuGet Package: DevExpress.Win.Navigation
Declaration
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.
If you want the same format for both display and edit modes, enable the UseMaskAsDisplayFormat
to avoid setting the same format pattern twice.