Skip to main content

TimeScale Class

Serves as the base class for classes which are time scales in the Timeline view.

Namespace: DevExpress.XtraScheduler

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

NuGet Package: DevExpress.Scheduler.Core

#Declaration

public abstract class TimeScale :
    UserInterfaceObject,
    INotifyPropertyChanged

The following members return TimeScale objects:

Library Related API Members
WinForms Controls ReportTimelineView.GetBaseTimeScale()
TimelineScaleHeaders.GetBaseTimeScale()
TimelineView.GetBaseTimeScale()
WPF Controls TimelineView.GetBaseTimeScale()
ASP.NET Web Forms Controls TimelineView.GetBaseTimeScale()

#Remarks

This class provides the TimeScale.Enabled and TimeScale.Visible properties, which define the behavior of a particular time scale when calculating a Scheduler Control’s layout for the Timeline view.

You can inherit from this class to modify the Timeline View by implementing custom time scales. A custom scale allows you to specify arbitrary scale intervals, modify captions and hide certain time intervals.

For the comparitively simple task of creating a scale with a fixed interval, you can inherit from the TimeScaleFixedInterval class. For more complex tasks, use the TimeScale descendants and override key methods, as illustrated in the How to: Hide Certain Columns in the Timeline View document.

#Implements

See Also