Back to Devexpress

RepositoryItemTextEdit.UseMaskAsDisplayFormat Property

windowsforms-devexpress-dot-xtraeditors-dot-repository-dot-repositoryitemtextedit-ce5ebae1.md

latest2.4 KB
Original Source

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 DevExpress.XtraEditors.Mask.MaskProperties.UseMaskAsDisplayFormat property.

Namespace : DevExpress.XtraEditors.Repository

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DXCategory("Format")]
public virtual bool UseMaskAsDisplayFormat { get; set; }
vb
<DXCategory("Format")>
Public Overridable Property UseMaskAsDisplayFormat As Boolean

Property Value

TypeDescription
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.

See Also

RepositoryItemTextEdit Class

RepositoryItemTextEdit Members

DevExpress.XtraEditors.Repository Namespace