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.1.dll
NuGet Package: DevExpress.Wpf.Core
Declaration
See GetResetPartsOnSelectAllInput(DependencyObject) and SetResetPartsOnSelectAllInput(DependencyObject, Nullable<Boolean>).
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