MonthCalendar.HitArea MonthCalendar.HitArea MonthCalendar.HitArea MonthCalendar.HitArea Enum

Definition

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
MonthCalendar.HitAreaMonthCalendar.HitAreaMonthCalendar.HitAreaMonthCalendar.HitArea

Fields

CalendarBackground CalendarBackground CalendarBackground CalendarBackground 6

The specified point is part of the calendar's background.

Date Date Date 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 DayOfWeek DayOfWeek 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 NextMonthButton NextMonthButton 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 NextMonthDate NextMonthDate 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 Nowhere Nowhere Nowhere 0

The specified point is either not on the month calendar control, or it is in an inactive portion of the control.

PrevMonthButton PrevMonthButton PrevMonthButton 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 PrevMonthDate PrevMonthDate 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 TitleBackground TitleBackground TitleBackground 1

The specified point is over the background of a month's title.

TitleMonth TitleMonth TitleMonth TitleMonth 2

The specified point is in a month's title bar, over a month name.

TitleYear TitleYear TitleYear TitleYear 3

The specified point is in a month's title bar, over the year value.

12

The specified point is on the today link at the bottom of the month calendar control.

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