ClassIntervalBase
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
IntervalBase()
Initializes a new instance of the IntervalBase class.
Declaration
protected IntervalBase()
Fields
CurrentIntervalSpanProperty
Identifies the CurrentIntervalSpan dependency property.
Declaration
public static readonly DependencyProperty CurrentIntervalSpanProperty
Field Value
DependencyProperty
IntervalSpansProperty
Identifies the IntervalSpans dependency property.
Declaration
public static readonly DependencyProperty IntervalSpansProperty
Field Value
DependencyProperty
Properties
CurrentIntervalSpan
Gets the current number of smallest interval periods that one interval item spans.
Declaration
public int CurrentIntervalSpan { get; }
Property Value
The current number of smallest interval periods that one interval item spans.
FormatterProvider
Gets or sets an object that controls the formatting of the interval labels.
Declaration
public IIntervalFormatterProvider FormatterProvider { get; set; }
Property Value
The formatter provider.
Formatters
Gets a collection of formatters used to convert DateTime objects to specific strings.
Declaration
public abstract Func<DateTime, string>[] Formatters { get; }
Property Value
A collection of formatters.
Remarks
The Formatters collection is used when CurrentIntervalSpan equals 1; otherwise, the IntervalSpanFormatters collection is used.
IntervalSpanFormatters
Gets a collection of formatters used to convert DateTime objects to specific strings.
Declaration
public virtual Func<DateTime, string>[] IntervalSpanFormatters { get; }
Property Value
A collection of formatters.
Remarks
The Formatters collection is used when CurrentIntervalSpan equals 1; otherwise, the IntervalSpanFormatters collection is used.
IntervalSpans
Gets or sets a collection of numbers of smallest interval periods that one interval item can span.
Declaration
[TypeConverter(typeof(IntervalSpansConverter))]
public IntervalSpanCollection IntervalSpans { get; set; }
Property Value
A collection of numbers of smallest interval periods that one interval item can span.
MinimumPeriodLength
Gets the smallest interval period.
Declaration
public abstract TimeSpan MinimumPeriodLength { get; }
Property Value
The smallest interval period.
Methods
ExtractIntervalStart(DateTime)
Extracts the interval start from a specified DateTime object.
IncrementByCurrentInterval(DateTime)
Increments a specified DateTime object by the CurrentIntervalSpan number of smallest interval periods.
IncrementByInterval(DateTime, int)
Increments a specified DateTime object by a specified number of MinimumPeriodLengths.
Declaration
public abstract DateTime IncrementByInterval(DateTime date, int intervalSpan)
Parameters
date
The DateTime object.
intervalSpan
The number of MinimumPeriodLengths.
Returns
The incremented DateTime object.