Export (0) Print
Expand All
Expand Minimize

MonthCalendar.HitArea Enumeration

Defines constants that represent areas in a MonthCalendar control.

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in system.windows.forms.dll)

public enum HitArea
public enum HitArea
public enum HitArea

 Member nameDescription
CalendarBackgroundThe specified point is part of the calendar's background. 
DateThe specified point is on a date within the calendar. The Time property of MonthCalendar.HitTestInfo is set to the date at the specified point. 
DayOfWeekThe specified point is over a day abbreviation ("Fri", for example). The Time property of MonthCalendar.HitTestInfo is set to January 1, 0001. 
NextMonthButtonThe 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. 
NextMonthDateThe 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. 
NowhereThe specified point is either not on the month calendar control, or it is in an inactive portion of the control. 
PrevMonthButtonThe 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. 
PrevMonthDateThe 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. 
TitleBackgroundThe specified point is over the background of a month's title. 
TitleMonthThe specified point is in a month's title bar, over a month name. 
TitleYearThe specified point is in a month's title bar, over the year value. 
TodayLinkThe specified point is on the today link at the bottom of the month calendar control. 
WeekNumbersThe 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. 

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.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0

Community Additions

ADD
Show:
© 2014 Microsoft