MonthCalendar.HitArea 枚举

定义表示 MonthCalendar 控件中区域的常量。

**命名空间:**System.Windows.Forms
**程序集:**System.Windows.Forms(在 system.windows.forms.dll 中)

语法

声明
Public Enumeration HitArea
用法
Dim instance As HitArea
public enum HitArea
public enum class HitArea
public enum HitArea
public enum HitArea

成员

  成员名称 说明
CalendarBackground 指定点是日历的背景的组成部分。 
Date 指定点在日历中的某一日期上。MonthCalendar.HitTestInfoTime 属性设置为指定点处的日期。 
DayOfWeek 指定点在日期缩写(例如,“Fri”)上。MonthCalendar.HitTestInfoTime 属性设置为 0001 年 1 月 1 日。 
NextMonthButton 指定点在控件右上角的按钮上。如果用户单击此处,则月历将其显示滚动到下一个月或下一组月。 
NextMonthDate 指定点在下一个月(部分显示在当前所显示月份的顶部)的某个日期上。如果用户单击此处,则月历将其显示滚动到下一个月或下一组月。 
Nowhere 指定点或者不在月历控件上,或者在控件的非活动部分。 
PrevMonthButton 指定点在控件左上角的按钮上。如果用户单击此处,则月历将其显示滚动到上一个月或上一组月。 
PrevMonthDate 指定点在前一个月(部分显示在当前所显示月份的顶部)中的某个日期上。如果用户单击此处,则月历将其显示滚动到上一个月或上一组月。 
TitleBackground 指定点在月标题的背景上。 
TitleMonth 指定点在月标题栏中的月名称上。 
TitleYear 指定点在年值上月的标题栏中。 
TodayLink 指定点在月历控件底端的今日链接上。 
WeekNumbers 指定点在周数上。只有在启用了 MonthCalendarShowWeekNumbers 属性时,这才会发生。MonthCalendar.HitTestInfoTime 属性设置为最左侧的列中对应的日期。 

备注

该枚举包括作为其枚举值的 MonthCalendar 控件的特定区域。MonthCalendar.HitTestInfoHitArea 成员是这些枚举值之一,并且指示月历的哪个部分在指定点之下。

平台

Windows 98、Windows 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

.NET Framework 并不是对每个平台的所有版本都提供支持。有关受支持版本的列表,请参见系统要求

版本信息

.NET Framework

受以下版本支持:2.0、1.1、1.0

请参见

参考

System.Windows.Forms 命名空间