点击或拖拽改变大小

MonthCalendar Class

X#
封装一个独立的 MonthCalendar 控件。
Inheritance Hierarchy
Object
  VObject
    Control
      TextControl
        MonthCalendar

命名空间:  VO
程序集:  VOGUIClasses (在 VOGUIClasses.dll 中) 版本:2.24 GA
Syntax
 CLASS MonthCalendar INHERIT TextControl
Request Example 查看代码

MonthCalendar 类型公开以下成员。

Constructors
  NameDescription
公共方法MonthCalendar
构造一个 MonthCalendar 对象。
Top
Properties
  NameDescription
公共属性BackgroundColor
描述 MonthCalendar 控件背景颜色(在月份之间)的 Color 对象。
公共属性FirstDayOfWeek
一个整数,指定一周的第一天(星期一=0,星期二=1,依此类推)。
公共属性MaxSelCount
MonthCalendar 控件中可以选择的最大天数。
公共属性MonthBackgroundColor
描述 MonthCalendar 控件背景颜色(在月份区域内)的 Color 对象。
公共属性MonthDelta
用户单击滚动按钮时控件滚动的月份数。
公共属性Range
设置 MonthCalendar 控件的最小和最大允许日期的 DateRange 对象。
公共属性Selection
当前选择的日期。在多重选择的情况下,返回的是开始日期。
公共属性SelectionRange
代表当前选择日期范围的 DateRange 对象。
公共属性TextColor
指定 MonthCalendar 控件文本颜色的 Color 对象。
(重写 TextColor.)
公共属性TextValue
当前日期选择的字符串格式。
(重写 TextValue.)
公共属性TitleBackgroundColor
指定 MonthCalendar 控件标题背景颜色的 Color 对象。
公共属性TitleTextColor
指定 MonthCalendar 控件标题文本颜色的 Color 对象。
公共属性Today
MonthCalendar 控件指定的“今天”日期。
公共属性TrailingTextColor
描述 MonthCalendar 控件尾部和前导天的颜色的 Color 对象,即不属于当前月份的天。
公共属性Value
当前选择的日期。
(重写 Value.)
Top
Methods
  NameDescription
公共方法Dispatch
提供在控件具有焦点时系统内事件的原型调度程序;将各种事件路由到其相应的事件处理程序。
(重写 Dispatch(Usual).)
Top
备注
MonthCalendar 控件显示一个月历,允许用户浏览月份并选择特定日期。
提示 提示:
需要 COMCTL32.DLL 的 4.70 或更高版本才能使用 MonthCalendar 控件。
See Also