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

RepositoryItemTimeSpanEdit.AllowEditMilliseconds Property

Gets or sets whether it is allowed to edit milliseconds in the time interval.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v18.2.dll

Declaration

[DefaultValue(false)]
[SmartTagProperty("Allow Edit Milliseconds", "")]
[DXCategory("Behavior")]
public bool AllowEditMilliseconds { get; set; }

Property Value

Type Default Description
Boolean **false**

true, if it is allowed to edit milliseconds in the time interval; otherwise, false.

Remarks

By default, an end-user is not allowed to edit milliseconds using the edit box or tiles in the drop-down panel. Set the AllowEditMilliseconds property to true to show the millisecond tiles in the drop-down panel and permit editing milliseconds in the time interval.

TimeSpanEdit_AllowEditMillisecs

To specify the maximum and minimum value for the milliseconds component of the time interval, use the RepositoryItemTimeSpanEdit.MaxMilliseconds and RepositoryItemTimeSpanEdit.MinMilliseconds properties.

To specify how the time span is edited from the edit box, assign the required date-time mask to the RepositoryItemTimeEdit.EditMask property. The editor supports mask specifiers for days (‘d’), hours (‘H’), minutes (‘m’), seconds (‘s’) and second fractions (‘f’). See examples below.


timeSpanEdit1.Properties.EditMask = "d.HH.mm.ss";
// Enables editing milliseconds from the drop-down.
timeSpanEdit1.Properties.AllowEditMilliseconds = true;
timeSpanEdit1.Properties.EditMask = "HH-mm-ss-fff";
timeSpanEdit1.Properties.EditMask = "d/HH/mm/ss/fff";
See Also