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
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. |
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. |
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. |
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. |
Nowhere | 0 | The specified point is either not on the month calendar control, or it is in an inactive portion of the control. |
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. |
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. |
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. |
TodayLink | 12 | The specified point is on the today link at the bottom of the month calendar control. |
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. |
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.
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기