menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class CalendarCellEventArgs - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class CalendarCellEventArgs

    Provides data to the CellClick event of the SfCalendar control.

    Inheritance
    System.Object
    System.EventArgs
    CalendarCellEventArgs
    Inherited Members
    System.EventArgs.Empty
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    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
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved