Skip to main content

TimeScaleFixedInterval Class

Serves as a base for the classes for which TimeScaleFixedInterval.Value is a fixed time interval.

Namespace: DevExpress.XtraScheduler

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

NuGet Package: DevExpress.Scheduler.Core


public class TimeScaleFixedInterval :


You can inherit from this class to implement custom time scales with different fixed intervals. For more complex tasks, you should inherit from the TimeScale class.

In your descendant class, you have to modify the class constructor so it calls a base (TimeScaleFixedInterval) constructor with the desired fixed interval as a parameter.

For a two-hour time scale, it looks like this:

public class MyTwoHourTimeScale : TimeScaleFixedInterval
    // Fields
    private const bool defaultEnabled = true;
    // Methods
    public MyTwoHourTimeScale()
        : base(TimeSpan.FromHours(2.0)){}
     protected override  string DefaultDisplayName
    { get{return "TwoHour Scale";}}
  protected override string DefaultMenuCaption
    { get{return "TwoHour Scale";}}


See Also