Back to Devexpress

DayView.TimeIndicatorDisplayOptions Property

windowsforms-devexpress-dot-xtrascheduler-dot-dayview-1f591b2d.md

latest3.3 KB
Original Source

DayView.TimeIndicatorDisplayOptions Property

Provides access to options specifying how the TimeIndicator is displayed in the view.

Namespace : DevExpress.XtraScheduler

Assembly : DevExpress.XtraScheduler.v25.2.dll

NuGet Package : DevExpress.Win.Scheduler

Declaration

csharp
[XtraSerializableProperty(XtraSerializationVisibility.Content, XtraSerializationFlags.DefaultValue)]
public TimeIndicatorDisplayOptions TimeIndicatorDisplayOptions { get; }
vb
<XtraSerializableProperty(XtraSerializationVisibility.Content, XtraSerializationFlags.DefaultValue)>
Public ReadOnly Property TimeIndicatorDisplayOptions As TimeIndicatorDisplayOptions

Property Value

TypeDescription
TimeIndicatorDisplayOptions

A TimeIndicatorDisplayOptions object that contains settings specific to the TimeIndicator.

|

Example

csharp
scheduler.DayView.TimeRulers.Add(new DevExpress.XtraScheduler.TimeRuler());

// Display the time marker if the view contains a current date.
scheduler.DayView.TimeMarkerVisibility = TimeMarkerVisibility.TodayView;
// Display the time indicator in the current date's column only.
scheduler.DayView.TimeIndicatorDisplayOptions.Visibility = TimeIndicatorVisibility.CurrentDate;
// Show the time indicator on top when it overlaps an appointment.
scheduler.DayView.TimeIndicatorDisplayOptions.ShowOverAppointment = true;
// Hide the time marker in the second time ruler.
scheduler.DayView.TimeRulers[1].TimeMarkerVisibility = TimeMarkerVisibility.Never;

scheduler.ActiveViewType = SchedulerViewType.Day;
scheduler.DayView.DayCount = 3;
scheduler.DayView.TopRowTime = DateTime.Now.AddHours(-1).TimeOfDay;
scheduler.Start = DateTime.Today.AddDays(-1);
vb
scheduler.DayView.TimeRulers.Add(New DevExpress.XtraScheduler.TimeRuler())

' Display the time marker if the view contains a current date.
scheduler.DayView.TimeMarkerVisibility = TimeMarkerVisibility.TodayView
' Display the time indicator in the current date's column only.
scheduler.DayView.TimeIndicatorDisplayOptions.Visibility = TimeIndicatorVisibility.CurrentDate
' Show the time indicator on top when it overlaps an appointment.
scheduler.DayView.TimeIndicatorDisplayOptions.ShowOverAppointment = True
' Hide the time marker in the second time ruler.
scheduler.DayView.TimeRulers(1).TimeMarkerVisibility = TimeMarkerVisibility.Never

scheduler.ActiveViewType = SchedulerViewType.Day
scheduler.DayView.DayCount = 3
scheduler.DayView.TopRowTime = Date.Now.AddHours(-1).TimeOfDay
scheduler.Start = Date.Today.AddDays(-1)

See Also

DayView Class

DayView Members

DevExpress.XtraScheduler Namespace