menu

WinForms

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

    Show / Hide Table of Contents

    Class CalendarCellModel

    Implements a data model for a calendar cell.

    Inheritance
    System.Object
    NonFinalizeDisposable
    Disposable
    GridCellModelBase
    GridStaticCellModel
    GridGenericControlCellModel
    CalendarCellModel
    Implements
    System.Runtime.Serialization.ISerializable
    System.IDisposable
    Inherited Members
    GridCellModelBase.ActiveTextChanged
    GridCellModelBase.ApplyFormattedText(GridStyleInfo, String, Int32)
    GridCellModelBase.ApplyText(GridStyleInfo, String)
    GridCellModelBase.BindingContext
    GridCellModelBase.ButtonBarSize
    GridCellModelBase.CalculatePreferredCellSize(Graphics, Int32, Int32, GridStyleInfo, GridQueryBounds)
    GridCellModelBase.CreateCopy(GridModel)
    GridCellModelBase.Description
    GridCellModelBase.Dispose()
    GridCellModelBase.ForceCoveredCellFullBounds
    GridCellModelBase.GetActiveText(Int32, Int32)
    GridCellModelBase.GetCellClientSize(Int32, Int32, GridStyleInfo)
    GridCellModelBase.GetCellSize(Int32, Int32)
    GridCellModelBase.GetFormattedOrActiveTextAt(Int32, Int32, GridStyleInfo)
    GridCellModelBase.GetFormattedText(GridStyleInfo, Object, Int32)
    GridCellModelBase.GetLocalizedString(String)
    GridCellModelBase.GetPropertyDescriptor(GridStyleInfo)
    GridCellModelBase.GetText(GridStyleInfo, Object)
    GridCellModelBase.GetTypeConverter(GridStyleInfo)
    GridCellModelBase.Grid
    GridCellModelBase.IsDisposed
    GridCellModelBase.IsDisposing
    GridCellModelBase.MeasureEmptyCellString
    GridCellModelBase.MeasureSampleWString(Graphics, Font)
    GridCellModelBase.OnActiveTextChanged(GridCellEventArgs)
    GridCellModelBase.OnBindingContextChanged(EventArgs)
    GridCellModelBase.OnModelDeserialization(Object, GridModel)
    GridCellModelBase.ResetActiveText(Int32, Int32)
    GridCellModelBase.SerializeSchemeVersion
    GridCellModelBase.SetActiveText(Int32, Int32, String)
    GridCellModelBase.SubtractBorders(Rectangle, GridStyleInfo)
    GridCellModelBase.SubtractBorders(Rectangle, GridStyleInfo, Boolean)
    GridStaticCellModel.AllowFloating
    GridStaticCellModel.AllowMerging
    GridStaticCellModel.GetObjectData(SerializationInfo, StreamingContext)
    GridStaticCellModel.OnQueryCanFloatCell(Int32, Int32, GridStyleInfo, GridQueryFloatCell)
    GridStaticCellModel.OnQueryCanMergeCell(Int32, Int32, GridStyleInfo, GridMergeCellDirection)
    NonFinalizeDisposable.Dispose(Boolean)
    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.GridHelperClasses
    Assembly: Syncfusion.GridHelperClasses.Windows.dll
    Syntax
    public class CalendarCellModel : GridGenericControlCellModel, ISerializable, IDisposable

    Constructors

    CalendarCellModel(GridModel)

    Initializes a new instance of the CalendarCellModel class.

    Declaration
    public CalendarCellModel(GridModel grid)
    Parameters
    Type Name Description
    GridModel grid

    The grid model.

    CalendarCellModel(SerializationInfo, StreamingContext)

    Initializes a new instance of the CalendarCellModel class.

    Declaration
    protected CalendarCellModel(SerializationInfo info, StreamingContext context)
    Parameters
    Type Name Description
    System.Runtime.Serialization.SerializationInfo info

    SerializationInfo

    System.Runtime.Serialization.StreamingContext context

    StreamingContext

    Properties

    CalendarControlSize

    Gets the size of calendar control.

    Declaration
    public static Size CalendarControlSize { get; }
    Property Value
    Type
    System.Drawing.Size

    Methods

    CreateRenderer(GridControlBase)

    Creates the cell renderer.

    Declaration
    public override GridCellRendererBase CreateRenderer(GridControlBase control)
    Parameters
    Type Name Description
    GridControlBase control

    The grid control.

    Returns
    Type Description
    GridCellRendererBase

    The GridCellRendererBase.

    Overrides
    GridGenericControlCellModel.CreateRenderer(GridControlBase)

    InitializeCalendar(MonthCalendar, GridStyleInfo)

    Initializes the calendar control.

    Declaration
    public static void InitializeCalendar(MonthCalendar c, GridStyleInfo style)
    Parameters
    Type Name Description
    System.Windows.Forms.MonthCalendar c

    Calendar control.

    GridStyleInfo style

    Cell style.

    InitializeCalendar(MonthCalendar, Object)

    Initializes the calendar control.

    Declaration
    public static void InitializeCalendar(MonthCalendar c, object controlValue)
    Parameters
    Type Name Description
    System.Windows.Forms.MonthCalendar c

    The System.Windows.Forms.MonthCalendar to initialize.

    System.Object controlValue

    Value for the calendar.

    OnQueryPrefferedClientSize(Graphics, Int32, Int32, GridStyleInfo, GridQueryBounds)

    Calculates and returns a specified size

    Declaration
    protected override Size OnQueryPrefferedClientSize(Graphics g, int rowIndex, int colIndex, GridStyleInfo style, GridQueryBounds queryBounds)
    Parameters
    Type Name Description
    System.Drawing.Graphics g

    Graphical parameter

    System.Int32 rowIndex

    Indicates the RowIndex

    System.Int32 colIndex

    Indicates the ColIndex

    GridStyleInfo style

    Indicates the Style Parameter

    GridQueryBounds queryBounds

    Sets up the bounds of the client

    Returns
    Type Description
    System.Drawing.Size

    Preferred client size.

    Overrides
    GridStaticCellModel.OnQueryPrefferedClientSize(Graphics, Int32, Int32, GridStyleInfo, GridQueryBounds)

    Implements

    System.Runtime.Serialization.ISerializable
    System.IDisposable
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved