MaskProperties.UseMaskAsDisplayFormat Property
Gets or sets whether display values are still formatted using the mask when the editor is not focused.
Namespace: DevExpress.XtraEditors.Mask
Assembly: DevExpress.XtraEditors.v22.2.dll
NuGet Package: DevExpress.Win.Navigation
Declaration
[Browsable(false)]
[EditorBrowsable(EditorBrowsableState.Never)]
public virtual bool UseMaskAsDisplayFormat { get; set; }
Property Value
Type | Default | Description |
---|---|---|
Boolean | false | true if the mask settings are used to format display values when the editor is not focused; false if the RepositoryItem.DisplayFormat object’s settings are used instead. |
Remarks
You can set the UseMaskAsDisplayFormat property to true to use the current mask settings to form the editor’s display text when the editor is not focused. As a result the editor’s text in edit and display mode will be identical.
If this property is set to false the editor’s display text is formed according to the settings provided by the RepositoryItem.DisplayFormat property.
If the editor’s MaskProperties.MaskType property is set to MaskType.None the UseMaskAsDisplayFormat property is ignored. In this case, the RepositoryItem.DisplayFormat property’s settings are used to format display values.