TimeIndicatorDisplayOptions.ShowOverAppointment Property

Gets or sets whether the Time Indicator is displayed over appointments in the view.

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v20.1.dll

Declaration

[DefaultValue(false)]
[XtraSerializableProperty]
public bool ShowOverAppointment { get; set; }
<DefaultValue(False)>
<XtraSerializableProperty>
Public Property ShowOverAppointment As Boolean

Property Value

Type Default Description
Boolean

false

True to display a current time line over appointments; otherwise, false.

Property Paths

You can access this nested property as listed below:

Object Type Path to ShowOverAppointment
DayView
.TimeIndicatorDisplayOptions.ShowOverAppointment
FullWeekView
.TimeIndicatorDisplayOptions.ShowOverAppointment
GanttView
.TimeIndicatorDisplayOptions.ShowOverAppointment
TimelineView
.TimeIndicatorDisplayOptions.ShowOverAppointment
WorkWeekView
.TimeIndicatorDisplayOptions.ShowOverAppointment

Examples

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);
See Also