Class CalendarCellEventArgs
Provides data to the CellClick event of the SfCalendar control.
Inheritance
Inherited Members
Namespace: Syncfusion.WinForms.Input.Events
Assembly: Syncfusion.SfInput.WinForms.dll
Syntax
public class CalendarCellEventArgs : EventArgs
Constructors
CalendarCellEventArgs(Nullable<DateTime>, String, SelectionRange, Boolean, Boolean, Boolean, CalendarViewType)
Initializes a new instance of the CalendarCellEventArgs class.
Declaration
public CalendarCellEventArgs(DateTime? date, string text, SelectionRange daterange, bool isspecial, bool isblackout, bool isweeknumber, CalendarViewType viewtype)
Parameters
Type | Name | Description |
---|---|---|
System.Nullable<System.DateTime> | date | Date of the cell. |
System.String | text | Text of the cell. |
System.Windows.Forms.SelectionRange | daterange | Date range of the cell. |
System.Boolean | isspecial | Corresponding date is special date. |
System.Boolean | isblackout | Corresponding date is blackout date. |
System.Boolean | isweeknumber | Corresponding date is week number. |
CalendarViewType | viewtype | ViewType of the calendar. |
Properties
DateRange
Gets the StartDate and endDate range values of the clicked cell.
Declaration
public SelectionRange DateRange { get; }
Property Value
Type |
---|
System.Windows.Forms.SelectionRange |
IsBlackoutDate
Gets a value indicating whether the date of cell is BlackoutDate in SfCalendar.
Declaration
public bool IsBlackoutDate { get; }
Property Value
Type |
---|
System.Boolean |
IsSpecialDate
Gets a value indicating whether the date of cell is SpecialDate in SfCalendar.
Declaration
public bool IsSpecialDate { get; }
Property Value
Type |
---|
System.Boolean |
IsWeekNumber
Gets a value indicating whether the date of cell is Week end in SfCalendar.
Declaration
public bool IsWeekNumber { get; }
Property Value
Type |
---|
System.Boolean |
Text
Gets the value of the clicked cell text.
Declaration
public string Text { get; }
Property Value
Type |
---|
System.String |
Value
Gets the value of the clicked cell date value.
Declaration
public DateTime? Value { get; }
Property Value
Type |
---|
System.Nullable<System.DateTime> |
ViewType
Gets the CalendarViewType of the cell to draw in SfCalendar, whether it is month, year, decade or century view in SfCalendar.
Declaration
public CalendarViewType ViewType { get; }
Property Value
Type |
---|
CalendarViewType |