Back to Devexpress

DayView.TopRowTime Property

windowsforms-devexpress-dot-xtrascheduler-dot-dayview-db3a605d.md

latest6.4 KB
Original Source

DayView.TopRowTime Property

Gets or sets the time of the topmost row which is currently shown in the Day View.

Namespace : DevExpress.XtraScheduler

Assembly : DevExpress.XtraScheduler.v25.2.dll

NuGet Package : DevExpress.Win.Scheduler

Declaration

csharp
[Browsable(false)]
public TimeSpan TopRowTime { get; set; }
vb
<Browsable(False)>
Public Property TopRowTime As TimeSpan

Property Value

TypeDescription
TimeSpan

A TimeSpan value which represents the time value for the top row.

|

Remarks

The TopRowTime property specifies the time value of the row as demonstrated in the image below. This value is changed every time an end-user scrolls the data shown in the Day View.

The following code snippets (auto-collected from DevExpress Examples) contain references to the TopRowTime property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-scheduler-formatting-services/CS/FormattingServicesExample/Form1.cs#L22

csharp
schedulerControl1.DayView.TopRowTime = new TimeSpan(9, 0, 0);
schedulerControl1.WorkWeekView.TopRowTime = new TimeSpan(9, 0, 0);

winforms-scheduler-bind-sql-database-design-time/CS/SchedulerDbExample/Form1.cs#L19

csharp
schedulerControl1.ActiveViewType = DevExpress.XtraScheduler.SchedulerViewType.Day;
schedulerControl1.DayView.TopRowTime = new TimeSpan(10, 0, 0);
schedulerControl1.GroupType = DevExpress.XtraScheduler.SchedulerGroupType.Resource;

winforms-scheduler-mapping-converters/CS/SchedulerMappingConverterExample/Form1.cs#L28

csharp
schedulerControl1.ActiveViewType = DevExpress.XtraScheduler.SchedulerViewType.Day;
schedulerControl1.DayView.TopRowTime = new TimeSpan(10, 0, 0);
schedulerControl1.GroupType = DevExpress.XtraScheduler.SchedulerGroupType.Resource;

winforms-scheduler-custom-appointment-edit-form/CS/SchedulerDbExample/Form1.cs#L19

csharp
schedulerControl1.ActiveViewType = DevExpress.XtraScheduler.SchedulerViewType.Day;
schedulerControl1.DayView.TopRowTime = new TimeSpan(10, 0, 0);
schedulerControl1.GroupType = DevExpress.XtraScheduler.SchedulerGroupType.Resource;

winforms-scheduler-create-appointments-on-reminder-alert/CS/ReminderCustomActions/Form1.cs#L35

csharp
schedulerControl1.Start = DateTime.Today;
schedulerControl1.DayView.TopRowTime = TimeSpan.FromHours(DateTime.Now.Hour);

winforms-scheduler-formatting-services/VB/FormattingServicesExample/Form1.vb#L22

vb
CreateHeaderToolTipService()
schedulerControl1.DayView.TopRowTime = New TimeSpan(9, 0, 0)
schedulerControl1.WorkWeekView.TopRowTime = New TimeSpan(9, 0, 0)

winforms-scheduler-bind-sql-database-design-time/VB/SchedulerDbExample/Form1.vb#L21

vb
schedulerControl1.ActiveViewType = SchedulerViewType.Day
schedulerControl1.DayView.TopRowTime = New TimeSpan(10, 0, 0)
schedulerControl1.GroupType = SchedulerGroupType.Resource

winforms-scheduler-mapping-converters/VB/SchedulerMappingConverterExample/Form1.vb#L30

vb
schedulerControl1.ActiveViewType = DevExpress.XtraScheduler.SchedulerViewType.Day
schedulerControl1.DayView.TopRowTime = New TimeSpan(10, 0, 0)
schedulerControl1.GroupType = DevExpress.XtraScheduler.SchedulerGroupType.Resource

winforms-scheduler-custom-appointment-edit-form/VB/SchedulerDbExample/Form1.vb#L21

vb
schedulerControl1.ActiveViewType = DevExpress.XtraScheduler.SchedulerViewType.Day
schedulerControl1.DayView.TopRowTime = New TimeSpan(10, 0, 0)
schedulerControl1.GroupType = DevExpress.XtraScheduler.SchedulerGroupType.Resource

winforms-scheduler-create-appointments-on-reminder-alert/VB/ReminderCustomActions/Form1.vb#L37

vb
schedulerControl1.Start = Date.Today
schedulerControl1.DayView.TopRowTime = TimeSpan.FromHours(Date.Now.Hour)

See Also

DayView Class

DayView Members

DevExpress.XtraScheduler Namespace