windowsforms-devexpress-dot-xtraeditors-dot-repository-dot-repositoryitemspinedit-d474b575.md
Gets or sets an edit mask.
Namespace : DevExpress.XtraEditors.Repository
Assembly : DevExpress.XtraEditors.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
[DefaultValue("")]
[DXCategory("Format")]
public string EditMask { get; set; }
<DXCategory("Format")>
<DefaultValue("")>
Public Property EditMask As String
| Type | Default | Description |
|---|---|---|
| String | String.Empty |
A string which specifies a mask expression.
|
Use the EditMask property to specify the pattern used to enter values. By default, a spin editor uses the MaskType.Numeric mask mode to enter values. So, the edit mask should be constructed using the syntax described in the Mask Type: Numeric document.
The EditMask property’s default value depends upon the RepositoryItemSpinEdit.IsFloatValue property. If this property is set to true , the EditMask property is set to an empty string (this default mask allows real values of non-fixed length to be entered; thousand separators are inserted between each group of three digits to the left of the decimal point). If the RepositoryItemSpinEdit.IsFloatValue property is set to false , the editor’s mask is automatically set to N00 (the mask allows integer values of a non-fixed length to be entered; thousand separators are inserted between each group of three digits).
See Also