RepositoryItemTimeSpanEdit Class
Stores settings specific to a TimeSpanEdit control.
Namespace: DevExpress.XtraEditors.Repository
Assembly: DevExpress.XtraEditors.v19.1.dll
Declaration
[ToolboxBitmap(typeof(ToolboxIconsRootNS), "TimeSpanEdit")]
public class RepositoryItemTimeSpanEdit :
RepositoryItemTimeEdit
Related API Members
The following members return RepositoryItemTimeSpanEdit objects:
Remarks
The RepositoryItemTimeSpanEdit class provides members specific to the TimeSpanEdit control. You can access these settings and events for standalone editors with the TimeSpanEdit.Properties object.
The main settings include:
- RepositoryItemTimeEdit.TimeEditStyle - Gets or sets how end-users can modify the control’s value (spin buttons or touch-aware tiles).
- RepositoryItemTimeSpanEdit.AllowEditDays, RepositoryItemTimeSpanEdit.AllowEditHours, RepositoryItemTimeSpanEdit.AllowEditMinutes, RepositoryItemTimeSpanEdit.AllowEditSeconds, RepositoryItemTimeSpanEdit.AllowEditMilliseconds - Ability to edit particular time span components (days, hours, minutes, seconds and milliseconds) using the edit box or tiles in the drop-down panel.
- RepositoryItemTimeSpanEdit.MaxDays, RepositoryItemTimeSpanEdit.MaxHours, RepositoryItemTimeSpanEdit.MaxMinutes, RepositoryItemTimeSpanEdit.MaxSeconds, RepositoryItemTimeSpanEdit.MaxMilliseconds - The maximum number of days, hours, minutes, seconds and milliseconds that can be set using the edit box or tiles in the drop-down panel.
When using editors for in-place editing within container controls, such as the XtraGrid, you do not work with editors directly, but with corresponding repository items. In order to use the RepositoryItemTimeSpanEdit
control for in-place editing, you have to create a RepositoryItemTimeSpanEdit
object explicitly (for instance, using the grid’s designer) and then assign it to a specific column. The RepositoryItemTimeSpanEdit
control will be created automatically when required, based on the repository item settings.