Skip to main content
A newer version of this page is available. .

TimeRuler.TimeMarkerVisibility Property

Gets or sets the visibility mode of the time marker for the current TimeRuler.

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v18.2.Core.dll

Declaration

[DefaultValue(null)]
[XtraSerializableProperty(XtraSerializationFlags.DefaultValue)]
public TimeMarkerVisibility? TimeMarkerVisibility { get; set; }

Property Value

Type Default Description
Nullable<TimeMarkerVisibility> *null*

A TimeMarkerVisibility enumeration member or null

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

If the TimeMarkerVisibility is null (default), the visibility mode is determined by the view’s setting (use platform-specific property - the DayView.TimeMarkerVisibility, DayView.TimeMarkerVisibility, or the DayView.TimeMarkerVisibility).

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

The following code snippets (auto-collected from DevExpress Examples) contain references to the TimeMarkerVisibility 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.

See Also