Skip to main content
A newer version of this page is available. .
All docs
V20.2

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.v20.2.dll

NuGet Packages: DevExpress.WindowsDesktop.Wpf.Core, 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