Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

MonthCalendar.HitArea Enumeration

Defines constants that represent areas in a MonthCalendar control.

[Visual Basic]
<Serializable>
Public Enum MonthCalendar.HitArea
[C#]
[Serializable]
public enum MonthCalendar.HitArea
[C++]
[Serializable]
__value public enum MonthCalendar.HitArea
[JScript]
public
   Serializable
enum MonthCalendar.HitArea

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.

Members

Member name Description
CalendarBackground The specified point is part of the calendar's background.
Date 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 The specified point is over a day abbreviation ("Fri", for example). The Time property of MonthCalendar.HitTestInfo is set to the corresponding date on the top row.
NextMonthButton 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 The specified point is over a date from the next month (partially displayed at the end 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 The specified point is either not on the month calendar control, or it is in an inactive portion of the control.
PrevMonthButton 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 The specified point is over a date from the previous month (partially displayed at the end 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 The specified point is over the background of a month's title.
TitleMonth The specified point is in a month's title bar, over a month name.
TitleYear The specified point is in a month's title bar, over the year value.
TodayLink The specified point is on the today link at the bottom of the month calendar control.
WeekNumbers 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.

Requirements

Namespace: System.Windows.Forms

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: System.Windows.Forms (in System.Windows.Forms.dll)

See Also

System.Windows.Forms Namespace

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.