Skip to main content

RepositoryItemSpinEdit.EditMask Property

Gets or sets an edit mask.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

[DefaultValue("")]
[DXCategory("Format")]
public string EditMask { get; set; }

Property Value

Type Default Description
String String.Empty

A string which specifies a mask expression.

Remarks

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

The EditMask property’s value is synchronized with the MaskProperties.EditMask which can be accessed via the RepositoryItemTextEdit.Mask property.

See Also