A newer version of this page is available. Switch to the current version.

RepositoryItemTimeSpanEdit.MinHours Property

Gets or sets the minimum number of hours of the time interval.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v19.1.dll


public int MinHours { get; set; }

Property Value

Type Default Description


An integer value that specifies the minimum number of hours of the time interval.


The MinHours and RepositoryItemTimeSpanEdit.MaxHours properties specify the minimum and maximum number of hours that can be set using the edit box or tiles in the dropdown.

Setting the MinHours property to a value greater than the RepositoryItemTimeSpanEdit.MaxHours property value throws a ArgumentException.

To specify whether it is allowed to edit the hours component of the time interval, use the RepositoryItemTimeSpanEdit.AllowEditHours property.

See Also