Class DecadeInterval
Defines an interval of 10 years.
Inherited Members
Namespace: Telerik.Windows.Controls.TimeBar
Assembly: Telerik.Windows.Controls.DataVisualization.dll
Syntax
public sealed class DecadeInterval : IntervalBase
Constructors
DecadeInterval()
Declaration
public DecadeInterval()
Properties
Formatters
Gets a collection of formatters used to convert System.DateTime objects to specific strings.
Declaration
public override Func<DateTime, string>[] Formatters { get; }
Property Value
System.Func<System.DateTime, System.String>[]
A collection of formatters. |
Overrides
Remarks
The Formatters collection is used when CurrentIntervalSpan equals 1; otherwise, the IntervalSpanFormatters collection is used.
MinimumPeriodLength
Gets the smallest interval period.
Declaration
public override TimeSpan MinimumPeriodLength { get; }
Property Value
System.TimeSpan
The smallest interval period. |
Overrides
Methods
ExtractIntervalStart(DateTime)
Extracts the interval start from a specified System.DateTime object.
Declaration
public override DateTime ExtractIntervalStart(DateTime date)
Parameters
System.DateTime
date
The System.DateTime object. |
Returns
System.DateTime
The interval start date. |
Overrides
GetDecadeEnd(DateTime)
Extracts the decade interval end date from a specified System.DateTime object that is in the decade.
Declaration
public static DateTime GetDecadeEnd(DateTime date)
Parameters
System.DateTime
date
The System.DateTime object. |
Returns
System.DateTime
The decade interval end date. |
GetDecadeStart(DateTime)
Extracts the decade interval start date from a specified System.DateTime object that is in the decade.
Declaration
public static DateTime GetDecadeStart(DateTime date)
Parameters
System.DateTime
date
The System.DateTime object. |
Returns
System.DateTime
The decade interval start date. |
IncrementByInterval(DateTime, Int32)
Increments a specified System.DateTime object by a specified number of MinimumPeriodLengths.
Declaration
public override DateTime IncrementByInterval(DateTime date, int intervalSpan)
Parameters
System.DateTime
date
The DateTime object. |
System.Int32
intervalSpan
The number of MinimumPeriodLengths. |
Returns
System.DateTime
The incremented System.DateTime object. |