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

指定点在日历中的某一日期上。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.

适用于