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

RepositoryItemTimeSpanEdit.MaxDays Property

Gets or sets the maximum number of days in the time interval.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v19.1.dll


[SmartTagProperty("Max Days", "")]
public int MaxDays { get; set; }

Property Value

Type Default Description


An integer value that specifies the maximum number of days in the time interval.


The MaxDays and RepositoryItemTimeSpanEdit.MinDays properties specify the maximum and minimum number of days that can be set using the edit box or tiles in the dropdown.

Setting the MaxDays property to a negative value throws a ArgumentException.

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

See Also