ClassWeekInterval
Defines an interval of one week.
Definition
Namespace:Telerik.Windows.Controls.TimeBar
Assembly:Telerik.Windows.Controls.DataVisualization.dll
Syntax:
public sealed class WeekInterval : IntervalBase
Inheritance: objectIntervalBaseWeekInterval
Inherited Members
Constructors
WeekInterval()
Declaration
public WeekInterval()
Properties
FirstDayOfWeek
Gets the first day of the week.
Declaration
public static DayOfWeek FirstDayOfWeek { get; }
Property Value
An enumeration value that represents the first day of the week.
Formatters
Gets a collection of formatters used to convert DateTime objects to specific strings.
Declaration
public override Func<DateTime, string>[] Formatters { get; }
Property Value
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
The smallest interval period.
Overrides
Methods
ExtractIntervalStart(DateTime)
Extracts the interval start from a specified DateTime object.
GetWeekOfYear(DateTime)
Returns the week of the year that includes the date in the specified DateTime value.
IncrementByInterval(DateTime, int)
Increments a specified DateTime object by a specified number of MinimumPeriodLengths.
Declaration
public override DateTime IncrementByInterval(DateTime date, int intervalSpan)
Parameters
date
The DateTime object.
intervalSpan
The number of MinimumPeriodLengths.
Returns
The incremented DateTime object.
Overrides