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

Defines an interval of one hour.

Definition

Namespace:Telerik.Windows.Controls.TimeBar

Assembly:Telerik.Windows.Controls.DataVisualization.dll

Syntax:

C#
public sealed class HourInterval : IntervalBase

Inheritance: objectIntervalBaseHourInterval

Inherited Members IntervalBase.CurrentIntervalSpanPropertyIntervalBase.IntervalSpansPropertyIntervalBase.IncrementByCurrentInterval(DateTime)IntervalBase.IntervalSpansIntervalBase.CurrentIntervalSpanIntervalBase.FormatterProvider...

Constructors

C#
public HourInterval()

Properties

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

C#
public override Func<DateTime, string>[] Formatters { get; }
Property Value:

A collection of formatters.

Overrides: IntervalBase.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 override Func<DateTime, string>[] IntervalSpanFormatters { get; }
Property Value:

A collection of formatters.

Overrides: IntervalBase.IntervalSpanFormatters

Remarks:

The Formatters collection is used when CurrentIntervalSpan equals 1; otherwise, the IntervalSpanFormatters collection is used.

Gets the smallest interval period.

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

The smallest interval period.

Overrides: IntervalBase.MinimumPeriodLength

Methods

Extracts the interval start from a specified DateTime object.

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

The DateTime object.

Returns:

DateTime

The interval start date.

Overrides: IntervalBase.ExtractIntervalStart(DateTime)

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

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

The DateTime object.

intervalSpanint

The number of MinimumPeriodLengths.

Returns:

DateTime

The incremented DateTime object.

Overrides: IntervalBase.IncrementByInterval(DateTime, int)