TextEditSettings.MaskType Property
Gets or sets the mask type. This is a dependency property.
Namespace: DevExpress.Xpf.Editors.Settings
Assembly: DevExpress.Xpf.Core.v24.2.dll
NuGet Package: DevExpress.Wpf.Core
#Declaration
#Property Value
Type | Description |
---|---|
Mask |
One of the Mask |
Available values:
Name | Description |
---|---|
None | The masked input is disabled. |
Date |
The editor accepts date/time values. The mask string must use the Date |
Date |
The If a user completes a part of the value, the caret moves to the next editable part. |
Date |
The editor accepts date values. The mask string must use the Date |
Date |
The If a user completes a part of the value, the caret moves to the next editable part. |
Date |
The editor accepts date/time values with the timezone offset. The mask string must use the Date |
Date |
The If a user completes a part of the value, the caret moves to the next editable part. |
Time |
The editor accepts time values. The mask string must use the Time |
Time |
The If a user completes a part of the value, the caret moves to the next editable part. |
Numeric | The editor accepts numeric values. The mask string must use the |
Reg |
The mask should use the full-functional regular expressions. |
Regular | The mask should use the simplified regular expression syntax. |
Simple | The mask should use the simplified syntax. |
Time |
The editor accepts time interval values. The mask string must use the Time |
Time |
The If a user completes a part of the value, the caret moves to the next editable part. |
Custom | Applies the mask specified in the Custom |
#Remarks
To learn more, see Masked Input.
#Example
<dxg:GridControl ItemsSource="{Binding Customers}">
<dxg:GridControl.View>
<dxg:TableView />
</dxg:GridControl.View>
<dxg:GridColumn FieldName="Name"/>
<dxg:GridColumn FieldName="City"/>
<dxg:GridColumn FieldName="Birthday">
<dxg:GridColumn.EditSettings>
<dxe:TextEditSettings Mask="d" MaskType="DateTime" MaskUseAsDisplayFormat="True"/>
</dxg:GridColumn.EditSettings>
</dxg:GridColumn>
</dxg:GridControl>
#Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the MaskType property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.