DayRenderEventArgs 构造函数
定义
初始化 DayRenderEventArgs 类的新实例。Initializes a new instance of the DayRenderEventArgs class.
重载
| DayRenderEventArgs(TableCell, CalendarDay) |
使用指定的单元格和日历日初始化 DayRenderEventArgs 类的新实例。Initializes a new instance of the DayRenderEventArgs class using the specified cell and calendar day. |
| DayRenderEventArgs(TableCell, CalendarDay, String) |
使用指定的单元格、日历日和选择 URL 初始化 DayRenderEventArgs 类的新实例。Initializes a new instance of the DayRenderEventArgs class using the specified cell, calendar day, and selection URL. |
DayRenderEventArgs(TableCell, CalendarDay)
使用指定的单元格和日历日初始化 DayRenderEventArgs 类的新实例。Initializes a new instance of the DayRenderEventArgs class using the specified cell and calendar day.
public:
DayRenderEventArgs(System::Web::UI::WebControls::TableCell ^ cell, System::Web::UI::WebControls::CalendarDay ^ day);
public DayRenderEventArgs (System.Web.UI.WebControls.TableCell cell, System.Web.UI.WebControls.CalendarDay day);
new System.Web.UI.WebControls.DayRenderEventArgs : System.Web.UI.WebControls.TableCell * System.Web.UI.WebControls.CalendarDay -> System.Web.UI.WebControls.DayRenderEventArgs
Public Sub New (cell As TableCell, day As CalendarDay)
参数
- day
- CalendarDay
表示呈现在 CalendarDay 中的日期的 Calendar。A CalendarDay that represents the day to render in the Calendar.
注解
使用此构造函数创建并初始化类的新实例 DayRenderEventArgs 。Use this constructor to create and initialize a new instance of the DayRenderEventArgs class.
当 DayRenderEventArgs 通过调用此构造函数创建的实例时,会将下表中显示的属性初始化为指定值。When an instance of DayRenderEventArgs is created by a call to this constructor, the properties shown in the following table are initialized to the specified values.
| propertiesProperty | 初始值Initial value |
|---|---|
| Cell | cell 参数的值。The value of the cell parameter. |
| Day | day 参数的值。The value of the day parameter. |
备注
此构造函数主要由控件开发人员使用。This constructor is used primarily by control developers.
另请参阅
适用于
DayRenderEventArgs(TableCell, CalendarDay, String)
使用指定的单元格、日历日和选择 URL 初始化 DayRenderEventArgs 类的新实例。Initializes a new instance of the DayRenderEventArgs class using the specified cell, calendar day, and selection URL.
public:
DayRenderEventArgs(System::Web::UI::WebControls::TableCell ^ cell, System::Web::UI::WebControls::CalendarDay ^ day, System::String ^ selectUrl);
public DayRenderEventArgs (System.Web.UI.WebControls.TableCell cell, System.Web.UI.WebControls.CalendarDay day, string selectUrl);
new System.Web.UI.WebControls.DayRenderEventArgs : System.Web.UI.WebControls.TableCell * System.Web.UI.WebControls.CalendarDay * string -> System.Web.UI.WebControls.DayRenderEventArgs
Public Sub New (cell As TableCell, day As CalendarDay, selectUrl As String)
参数
- day
- CalendarDay
表示呈现在 CalendarDay 中的日期的 Calendar。A CalendarDay that represents the day to render in the Calendar.
- selectUrl
- String
用户选择呈现的日期时用于将此页回发至服务器的脚本。The script used to post the page back to the server when the user selects the date being rendered.
注解
使用此构造函数创建并初始化类的新实例 DayRenderEventArgs 。Use this constructor to create and initialize a new instance of the DayRenderEventArgs class.
当 DayRenderEventArgs 通过调用此构造函数创建的实例时,会将下表中显示的属性初始化为指定值。When an instance of DayRenderEventArgs is created by a call to this constructor, the properties shown in the following table are initialized to the specified values.
| propertiesProperty | 初始值Initial value |
|---|---|
| Cell | cell 参数的值。The value of the cell parameter. |
| Day | day 参数的值。The value of the day parameter. |
| SelectUrl | selectUrl 参数的值。The value of the selectUrl parameter. |
备注
此构造函数主要由控件开发人员使用。This constructor is used primarily by control developers.