Skip to main content
All docs
V24.2

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

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