MonthCalendar.HitArea Enumeration
TOC
Collapse the table of content
Expand the table of content

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

Member nameDescription
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 January 1, 0001.

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 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

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 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

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.

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.

.NET Framework
Available since 1.1
Return to top
Show:
© 2016 Microsoft