Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

RepositoryItemSpinEdit.EditMask Property

Gets or sets an edit mask.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v24.2.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).

See Also