CalendarDay Constructor
Assembly: System.Web (in system.web.dll)
public: CalendarDay ( DateTime date, bool isWeekend, bool isToday, bool isSelected, bool isOtherMonth, String^ dayNumberText )
public CalendarDay ( DateTime date, boolean isWeekend, boolean isToday, boolean isSelected, boolean isOtherMonth, String dayNumberText )
public function CalendarDay ( date : DateTime, isWeekend : boolean, isToday : boolean, isSelected : boolean, isOtherMonth : boolean, dayNumberText : String )
Parameters
- date
A System.DateTime object that contains the date represented by an instance of this class.
- isWeekend
true to indicate that the date represented by an instance of this class is either a Saturday or a Sunday; otherwise, false.
- isToday
true to indicate that the date represented by an instance of this class is the current date; otherwise, false.
- isSelected
true to indicate that the date represented by an instance of this class is selected on the Calendar control; otherwise, false.
- isOtherMonth
true to indicate that the date represented by an instance of this class is in a month other than the displayed month on the Calendar control; otherwise, false.
- dayNumberText
The day number for the date represented by this class.
Use this constructor to create and initialize a new instance of the CalendarDay class.
Note |
|---|
| Although this constructor is available, an instance of the CalendarDay class is not typically created dynamically. |
The following table shows initial property values for an instance of CalendarDay.
| Property | Initial Value |
|---|---|
| Date | The value of the date parameter. |
| DayNumberText | The value of the dayNumberText parameter. |
| IsOtherMonth | The value of the isOtherMonth parameter. |
| IsSelected | The value of the isSelected parameter. |
| IsToday | The value of the isToday parameter. |
| IsWeekend | The value of the isWeekEnd parameter. |
Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.
Note