MonthCalendar.HitArea Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Defines constants that represent areas in a MonthCalendar control.
public: enum class MonthCalendar::HitArea
public enum MonthCalendar.HitArea
type MonthCalendar.HitArea =
Public Enum MonthCalendar.HitArea
- Inheritance
Fields
Name | Value | Description |
---|---|---|
Nowhere | 0 | The specified point is either not on the month calendar control, or it is in an inactive portion of the control. |
TitleBackground | 1 | The specified point is over the background of a month's title. |
TitleMonth | 2 | The specified point is in a month's title bar, over a month name. |
TitleYear | 3 | The specified point is in a month's title bar, over the year value. |
NextMonthButton | 4 | The specified point is over the button at the upper-right corner of the control. If the user clicks here, the month calendar scrolls its display to the next month or set of months. |
PrevMonthButton | 5 | The specified point is over the button at the upper-left corner of the control. If the user clicks here, the month calendar scrolls its display to the previous month or set of months. |
CalendarBackground | 6 | The specified point is part of the calendar's background. |
Date | 7 | The specified point is on a date within the calendar. The Time property of MonthCalendar.HitTestInfo is set to the date at the specified point. |
NextMonthDate | 8 | The specified point is over a date from the next month (partially displayed at the top of the currently displayed month). If the user clicks here, the month calendar scrolls its display to the next month or set of months. |
PrevMonthDate | 9 | The specified point is over a date from the previous month (partially displayed at the top of the currently displayed month). If the user clicks here, the month calendar scrolls its display to the previous month or set of months. |
DayOfWeek | 10 | The specified point is over a day abbreviation ("Fri", for example). The Time property of MonthCalendar.HitTestInfo is set to January 1, 0001. |
WeekNumbers | 11 | The specified point is over a week number. This occurs only if the ShowWeekNumbers property of MonthCalendar is enabled. The Time property of MonthCalendar.HitTestInfo is set to the corresponding date in the leftmost column. |
TodayLink | 12 | The specified point is on the today link at the bottom of the month calendar control. |
Remarks
This enumeration includes specific areas of the MonthCalendar control as its enumerated values. The HitArea member of MonthCalendar.HitTestInfo is one of these enumerated values, and indicates which portion of a month calendar is under a specified point.