IModelCommonMemberViewItem.EditMask Property
Specifies the edit mask of a value in the current Property Editor.
Namespace: DevExpress.ExpressApp.Model
Assembly: DevExpress.ExpressApp.v21.1.dll
NuGet Package: DevExpress.ExpressApp
Declaration
Property Value
Type | Description |
---|---|
String | A string specifying the edit mask of a value in the current Property Editor. |
Remarks
The EditMask value is taken from IModelRegisteredPropertyEditor.DefaultEditMask. Supported values are described in the EditMask topic.
The following dialog is displayed when you click the ellipsis button to the right of the EditMask value in the Model Editor.
Certain options displayed in Mask Editor are not supported by XAF Application Model:
- MaskProperties.AutoComplete
- MaskProperties.BeepOnError
- MaskProperties.IgnoreMaskBlank
- MaskProperties.ShowPlaceHolders
- MaskProperties.SaveLiteral
You can Access Editor Settings in code to specify them, instead of using the Model Editor.
Note
The EditMask only prompts a user. It cannot prohibit saving the incorrect value (e.g., when a user does not fill all the required digits in a phone number). Use the Validation Module to configure strict rules.