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

TimeScaleFixedInterval Class

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

Namespace: DevExpress.XtraScheduler

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

Declaration

public class TimeScaleFixedInterval :
    TimeScale

Remarks

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";}}
}

The following code snippets (auto-collected from DevExpress Examples) contain references to the TimeScaleFixedInterval class.

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.

Implements

See Also