Skip to main content

TcxCustomDateEditProperties.YearsInMonthList Property

Specifies whether year values should be displayed in the month list of the editor’s classic-style dropdown calendar.

Declaration

property YearsInMonthList: Boolean read; write; default True;

Property Value

Type Default
Boolean True

Remarks

This property allows you to display or hide year values in the month list of the editor dropdown calendar. The month list can be displayed while an end-user clicks the ‘Month‘ field and holds the mouse button down.

The table below shows the resulting month list when various values assigned to the YearsInMonthList property.

Property Value False True

Note that a year is displayed in either case with the ArrowsForYear property set to False.

End-user can easily select the desired month by using the mouse wheel while the mouse cursor hovers over the ‘Month‘ field. If the ShowOnlyValidDates property is set to True, end-users cannot select months outside the range specified by the MinDate and MaxDate properties.

The default value of the YearsInMonthList property is True.

See Also