New to Telerik UI for WPFStart a free 30-day trial

Base class for all interval types.

Definition

Namespace:Telerik.Windows.Controls.TimeBar

Assembly:Telerik.Windows.Controls.DataVisualization.dll

Syntax:

C#
public abstract class IntervalBase : DependencyObject

Inheritance: objectIntervalBase

Derived Classes: CenturyIntervalDayIntervalDecadeIntervalHourIntervalMillisecondIntervalMinuteIntervalMonthIntervalQuarterIntervalSecondIntervalWeekIntervalYearInterval...

Constructors

Initializes a new instance of the IntervalBase class.

C#
protected IntervalBase()

Fields

CurrentIntervalSpanProperty

DependencyProperty

Identifies the CurrentIntervalSpan dependency property.

C#
public static readonly DependencyProperty CurrentIntervalSpanProperty

IntervalSpansProperty

DependencyProperty

Identifies the IntervalSpans dependency property.

C#
public static readonly DependencyProperty IntervalSpansProperty

Properties

Gets the current number of smallest interval periods that one interval item spans.

C#
public int CurrentIntervalSpan { get; }
Property Value:

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.

C#
public IIntervalFormatterProvider FormatterProvider { get; set; }
Property Value:

The formatter provider.

Gets a collection of formatters used to convert DateTime objects to specific strings.

C#
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.

Gets a collection of formatters used to convert DateTime objects to specific strings.

C#
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.

Gets or sets a collection of numbers of smallest interval periods that one interval item can span.

C#
[TypeConverter(typeof(IntervalSpansConverter))]
public IntervalSpanCollection IntervalSpans { get; set; }
Property Value:

A collection of numbers of smallest interval periods that one interval item can span.

Gets the smallest interval period.

C#
public abstract TimeSpan MinimumPeriodLength { get; }
Property Value:

The smallest interval period.

Methods

Extracts the interval start from a specified DateTime object.

C#
public abstract DateTime ExtractIntervalStart(DateTime date)
Parameters:dateDateTime

The DateTime object.

Returns:

DateTime

The interval start date.

Increments a specified DateTime object by the CurrentIntervalSpan number of smallest interval periods.

C#
public DateTime IncrementByCurrentInterval(DateTime date)
Parameters:dateDateTime

The DateTime object.

Returns:

DateTime

The incremented DateTime object.

Increments a specified DateTime object by a specified number of MinimumPeriodLengths.

C#
public abstract DateTime IncrementByInterval(DateTime date, int intervalSpan)
Parameters:dateDateTime

The DateTime object.

intervalSpanint

The number of MinimumPeriodLengths.

Returns:

DateTime

The incremented DateTime object.