편집

다음을 통해 공유


CalendarDay(DateTime, Boolean, Boolean, Boolean, Boolean, String) Constructor

Definition

Initializes a new instance of the CalendarDay class.

public:
 CalendarDay(DateTime date, bool isWeekend, bool isToday, bool isSelected, bool isOtherMonth, System::String ^ dayNumberText);
public CalendarDay (DateTime date, bool isWeekend, bool isToday, bool isSelected, bool isOtherMonth, string dayNumberText);
new System.Web.UI.WebControls.CalendarDay : DateTime * bool * bool * bool * bool * string -> System.Web.UI.WebControls.CalendarDay
Public Sub New (date As DateTime, isWeekend As Boolean, isToday As Boolean, isSelected As Boolean, isOtherMonth As Boolean, dayNumberText As String)

Parameters

date
DateTime

A DateTime object that contains the date represented by an instance of this class.

isWeekend
Boolean

true to indicate that the date represented by an instance of this class is either a Saturday or a Sunday; otherwise, false.

isToday
Boolean

true to indicate that the date represented by an instance of this class is the current date; otherwise, false.

isSelected
Boolean

true to indicate that the date represented by an instance of this class is selected on the Calendar control; otherwise, false.

isOtherMonth
Boolean

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
String

The day number for the date represented by this class.

Remarks

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.

Applies to

See also