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

Defines an interval of 10 years.

Definition

Constructors

C#
public DecadeInterval()

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 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)

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

C#
public static DateTime GetDecadeEnd(DateTime date)
Parameters:dateDateTime

The DateTime object.

Returns:

DateTime

The decade interval end date.

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

C#
public static DateTime GetDecadeStart(DateTime date)
Parameters:dateDateTime

The DateTime object.

Returns:

DateTime

The decade interval start date.

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)