IntervalBase
Base class for all interval types.
Definition
Namespace:Telerik.Windows.Controls.TimeBar
Assembly:Telerik.Windows.Controls.DataVisualization.dll
Syntax:
public abstract class IntervalBase : DependencyObject
Inheritance: objectIntervalBase
Derived Classes:
Constructors
Initializes a new instance of the IntervalBase class.
protected IntervalBase()
Fields
CurrentIntervalSpanProperty
DependencyProperty
Identifies the CurrentIntervalSpan dependency property.
public static readonly DependencyProperty CurrentIntervalSpanProperty
IntervalSpansProperty
DependencyProperty
Identifies the IntervalSpans dependency property.
public static readonly DependencyProperty IntervalSpansProperty
Properties
Gets the current number of smallest interval periods that one interval item spans.
public int CurrentIntervalSpan { get; }
The current number of smallest interval periods that one interval item spans.
Gets or sets an object that controls the formatting of the interval labels.
public IIntervalFormatterProvider FormatterProvider { get; set; }
The formatter provider.
Gets a collection of formatters used to convert DateTime objects to specific strings.
public abstract Func<DateTime, string>[] Formatters { get; }
A collection of formatters.
The Formatters collection is used when CurrentIntervalSpan equals 1; otherwise, the IntervalSpanFormatters collection is used.
Gets a collection of formatters used to convert DateTime objects to specific strings.
public virtual Func<DateTime, string>[] IntervalSpanFormatters { get; }
A collection of formatters.
The Formatters collection is used when CurrentIntervalSpan equals 1; otherwise, the IntervalSpanFormatters collection is used.
Gets or sets a collection of numbers of smallest interval periods that one interval item can span.
[TypeConverter(typeof(IntervalSpansConverter))]
public IntervalSpanCollection IntervalSpans { get; set; }
A collection of numbers of smallest interval periods that one interval item can span.
Gets the smallest interval period.
public abstract TimeSpan MinimumPeriodLength { get; }
The smallest interval period.
Methods
Increments a specified DateTime object by the CurrentIntervalSpan number of smallest interval periods.
Increments a specified DateTime object by a specified number of MinimumPeriodLengths.
public abstract DateTime IncrementByInterval(DateTime date, int intervalSpan)
The DateTime object.
intervalSpanintThe number of MinimumPeriodLengths.
Returns:The incremented DateTime object.