MonthCalendar.HitArea 列舉

定義

定義常數,表示 MonthCalendar 控制項中的區域。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
繼承
MonthCalendar.HitArea

欄位

CalendarBackground 6

指定點是日曆背景的一部分。The specified point is part of the calendar's background.

Date 7

指定點在日曆中的日期 (Date) 上。The specified point is on a date within the calendar. TimeMonthCalendar.HitTestInfo 屬性設定為指定點所在的日期。The Time property of MonthCalendar.HitTestInfo is set to the date at the specified point.

DayOfWeek 10

指定點在星期縮寫 (例如 Fri) 的上方。The specified point is over a day abbreviation ("Fri", for example). TimeMonthCalendar.HitTestInfo 屬性設為 0001 年 1 月 1 日。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.

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. 只有 ShowWeekNumbersMonthCalendar 屬性啟用才會發生。This occurs only if the ShowWeekNumbers property of MonthCalendar is enabled. TimeMonthCalendar.HitTestInfo 屬性設定為最左欄的對應日期。The Time property of MonthCalendar.HitTestInfo is set to the corresponding date in the leftmost column.

備註

這個列舉包含MonthCalendar控制項的特定區域做為其列舉值。This enumeration includes specific areas of the MonthCalendar control as its enumerated values. HitAreaMonthCalendar.HitTestInfo成員是其中一個列舉值, 表示月曆中的哪個部分在指定的點下。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.

適用於