Class CalendarCellModel
Implements a data model for a calendar cell.
Inheritance
System.Object
CalendarCellModel
Implements
System.Runtime.Serialization.ISerializable
System.IDisposable
Inherited Members
GridCellModelBase.CalculatePreferredCellSize(Graphics, Int32, Int32, GridStyleInfo, GridQueryBounds)
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
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
Implements
System.Runtime.Serialization.ISerializable
System.IDisposable