DayView.TimeMarkerVisibility Property
Gets or sets the visibility mode of the Time Marker for all DayView.TimeRulers of the view. Use the TimeMarkerStyle property to select the preferred Time Marker appearance.
Namespace: DevExpress.XtraScheduler
Assembly: DevExpress.XtraScheduler.v24.2.dll
Declaration
[DefaultValue(TimeMarkerVisibility.TodayView)]
[XtraSerializableProperty]
public TimeMarkerVisibility TimeMarkerVisibility { get; set; }
Property Value
Type | Default | Description |
---|---|---|
TimeMarkerVisibility | TodayView | A TimeMarkerVisibility enumeration member. |
Available values:
Name | Description |
---|---|
Never | TimeMarker is always hidden. |
Always | TimeMarker is always displayed. |
TodayView | Displays the time marker if the view contains the current date. |
Remarks
For a particular Time Ruler, the visibility mode can be specified using the TimeRuler.TimeMarkerVisibility property.
Example
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