Skip to main content
A newer version of this page is available. .

TimeSpanMaskOptions.DefaultPart Attached Property

Specifies the mask part (minutes, seconds, etc.) to which the entered numeric value is assigned if the editor’s edit value is empty. This is an attached property.

Namespace: DevExpress.Xpf.Editors

Assembly: DevExpress.Xpf.Core.v19.1.dll

Declaration

Returns

Type Description
TimeSpanPart

A TimeSpanPart enumeration value that identifies the default mask part. The default value is Hours.

Remarks

When the editor’s EditValue is null, the entered numeric value is assigned to the defaut mask part.

Use the DefaultPart property to specify the default mask part.

Example

In the code sample below, when an end user enters any numeric value, this numeric value is assigned to seconds.

<dxe:TextEdit MaskType="TimeSpan" Mask="[hH ][mM ][sS]" dxe:TimeSpanMaskOptions.DefaultPart="Seconds"/>
See Also