windowsforms-devexpress-dot-xtraeditors-dot-repository-dot-repositoryitemtextedit-ce5ebae1.md
Gets or sets whether the editor uses an Input Mask to format its display value when not focused. This property replaces the DevExpress.XtraEditors.Mask.MaskProperties.UseMaskAsDisplayFormat property.
Namespace : DevExpress.XtraEditors.Repository
Assembly : DevExpress.XtraEditors.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
[DXCategory("Format")]
public virtual bool UseMaskAsDisplayFormat { get; set; }
<DXCategory("Format")>
Public Overridable Property UseMaskAsDisplayFormat As Boolean
| 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.
|
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.
See Also