Reference > TDBCalendar Control > TDBCalendar Control Methods > ScrollYear Method (TDBCalendar) |
This method scrolls the calendar years according to the number of years specified. The ScrollYear method is provided to scroll years from the current view displayed in the calendar. Positive offsets scroll down and negative offsets scroll up. View offsets that are out of range will be scrolled automatically to the beginning or the end of the months specified with the MaxDate and the MinDate properties.
TDBCalendar.ScrollYearYearOffset
yearoffset is a required long integer that denotes the number of years to scroll and the direction in which to scroll them.
None
The ScrollYear method will fire the Scroll event when called. Do not use this method in the Scroll event, because this may cause recursive dead loops.