Back to Devexpress

RepositoryItemSpinEdit.EditMask Property

windowsforms-devexpress-dot-xtraeditors-dot-repository-dot-repositoryitemspinedit-d474b575.md

latest2.6 KB
Original Source

RepositoryItemSpinEdit.EditMask Property

Gets or sets an edit mask.

Namespace : DevExpress.XtraEditors.Repository

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue("")]
[DXCategory("Format")]
public string EditMask { get; set; }
vb
<DXCategory("Format")>
<DefaultValue("")>
Public Property EditMask As String

Property Value

TypeDefaultDescription
StringString.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

RepositoryItemSpinEdit Class

RepositoryItemSpinEdit Members

DevExpress.XtraEditors.Repository Namespace