Class
DecadeInterval

Defines an interval of 10 years.

Definition

Namespace:Telerik.Windows.Controls.TimeBar

Assembly:Telerik.Windows.Controls.DataVisualization.dll

Syntax:

cs-api-definition
public sealed class DecadeInterval : IntervalBase

Inheritance: objectIntervalBaseDecadeInterval

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

Constructors

DecadeInterval()

Declaration

cs-api-definition
public DecadeInterval()

Properties

Formatters

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

Declaration

cs-api-definition
public override Func<DateTime, string>[] Formatters { get; }

Property Value

Func<DateTime, string>[]

A collection of formatters.

Overrides IntervalBase.Formatters

Remarks

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

MinimumPeriodLength

Gets the smallest interval period.

Declaration

cs-api-definition
public override TimeSpan MinimumPeriodLength { get; }

Property Value

TimeSpan

The smallest interval period.

Overrides IntervalBase.MinimumPeriodLength

Methods

ExtractIntervalStart(DateTime)

Extracts the interval start from a specified DateTime object.

Declaration

cs-api-definition
public override DateTime ExtractIntervalStart(DateTime date)

Parameters

date

DateTime

The DateTime object.

Returns

DateTime

The interval start date.

Overrides IntervalBase.ExtractIntervalStart(DateTime)

GetDecadeEnd(DateTime)

Extracts the decade interval end date from a specified DateTime object that is in the decade.

Declaration

cs-api-definition
public static DateTime GetDecadeEnd(DateTime date)

Parameters

date

DateTime

The DateTime object.

Returns

DateTime

The decade interval end date.

GetDecadeStart(DateTime)

Extracts the decade interval start date from a specified DateTime object that is in the decade.

Declaration

cs-api-definition
public static DateTime GetDecadeStart(DateTime date)

Parameters

date

DateTime

The DateTime object.

Returns

DateTime

The decade interval start date.

IncrementByInterval(DateTime, int)

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

Declaration

cs-api-definition
public override DateTime IncrementByInterval(DateTime date, int intervalSpan)

Parameters

date

DateTime

The DateTime object.

intervalSpan

int

The number of MinimumPeriodLengths.

Returns

DateTime

The incremented DateTime object.

Overrides IntervalBase.IncrementByInterval(DateTime, int)