|ViewDefinitionBaseGetVisibleRangeStart Method |
When overridden in the derived class, this method calculated the visible range start
using the current date (passed as parameter), a culture and if provided, a specific first day of week.
Telerik.Windows.Controls.ScheduleView (in Telerik.Windows.Controls.ScheduleView.dll) Version: 2018.1.220.40 (2018.1.220.40)
protected virtual DateTime GetVisibleRangeStart(
Protected Overridable Function GetVisibleRangeStart (
currentDate As DateTime,
culture As CultureInfo,
firstDayOfWeek As Nullable(Of DayOfWeek)
) As DateTime
- Type: SystemDateTime
The current date to be used to calculate the visible range start.
- Type: System.GlobalizationCultureInfo
The culture to be used to calculate the visible range start.
- Type: SystemNullableDayOfWeek
The first day of week that overrides the one, provided by the culture.
The visible range start for the corresponding current date, culture and first day of week.
For example the WeekViewDefinition "snaps" to weeks. That means that it will always provide as visible range
start a date, that is the first day of the week which contains the current date and this first day will be
the same day of week as the provided one. If no firstDayOfWeek is provided, the value from the culture is used.
Example: If the first day of week is Monday and the current date is 2010/10/29 the result will be 2010/10/25.