Skip to main content
All docs
V23.2

RepositoryItemDateTimeOffsetEdit.EditMask Property

Gets or sets the active mask expression. This property is synchronized with the “MaskExpression” setting available through the RepositoryItemTextEdit.MaskSettings group.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v23.2.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

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

Property Value

Type Description
String

The active mask expression.

Remarks

Use the EditMask property when you need to set up a mask expression, and do not require advanced settings that can be accessed through the RepositoryItemTextEdit.MaskSettings property.

dateTimeOffsetEdit1.Properties.EditMask = "hh 'hours', zzz";
//or
var settings = 
    dateTimeOffsetEdit1.Properties.MaskSettings.Configure<MaskSettings.DateTimeOffset>();
settings.MaskExpression = "hh 'hours', zzz";
See Also