Class WeekInterval
Defines an interval of one week.
Inherited Members
Namespace: Telerik.Windows.Controls.TimeBar
Assembly: Telerik.Windows.Controls.DataVisualization.dll
Syntax
public sealed class WeekInterval : IntervalBase
Constructors
WeekInterval()
Declaration
public WeekInterval()
Properties
FirstDayOfWeek
Gets the first day of the week.
Declaration
public static DayOfWeek FirstDayOfWeek { get; }
Property Value
System.DayOfWeek
An enumeration value that represents the first day of the week. |
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
GetWeekOfYear(DateTime)
Returns the week of the year that includes the date in the specified System.DateTime value.
Declaration
public static int GetWeekOfYear(DateTime date)
Parameters
System.DateTime
date
The System.DateTime value. |
Returns
System.Int32
A positive integer that represents the week of the year that includes the date in the specified System.DateTime value. |
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. |