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

TimeSpanMaskOptions.ResetPartsOnSelectAllInput Attached Property

Specifies whether the editor clears all value parts when a user selects all text and enters a new value. This is an attached property.

Namespace: DevExpress.Xpf.Editors

Assembly: DevExpress.Xpf.Core.v24.2.dll

NuGet Package: DevExpress.Wpf.Core

#Declaration

#Returns

Type Default Description
Nullable<Boolean> null

true or null - to clear all value parts and set a new value;

false - to set a new value in the default part and not reset other parts.

#Remarks

#ResetPartsOnSelectAllInput = “True”

<dxe:TextEdit Mask="dd[:hh][:mm][:ss]" EditValue="5.00:02:00" MaskUseAsDisplayFormat="True" 
              MaskType="TimeSpan" dxe:TimeSpanMaskOptions.ResetPartsOnSelectAllInput="True"/>

A user selects all text and enters a new value. As a result, the editor clears all parts of the previous value and sets the new value.

#ResetPartsOnSelectAllInput = “False”

<dxe:TextEdit Mask="dd[:hh][:mm][:ss]" EditValue="5.00:02:00" MaskUseAsDisplayFormat="True" 
              MaskType="TimeSpan" dxe:TimeSpanMaskOptions.ResetPartsOnSelectAllInput="False"/>

A user selects all text and enters a new value. As a result, the editor sets the new value in the default part and does not reset other parts.

See Also