All docs
V20.2
20.2
20.1
The page you are viewing does not exist in version 20.1. This link will take you to the root page.
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

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

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