windowsforms-devexpress-dot-xtraeditors-dot-controls-dot-calendarcontrolbase-2a28d630.md
Gets or sets calendar cell size.
Namespace : DevExpress.XtraEditors.Controls
Assembly : DevExpress.XtraEditors.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
[DXCategory("Layout")]
public Size CellSize { get; set; }
<DXCategory("Layout")>
Public Property CellSize As Size
| Type | Description |
|---|---|
| Size |
The calendar cell size.
|
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the CellSize property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
winforms-calendar-dateedit-cell-appearance-customization/CS/Calendar_CellStyleProvider/Form1.cs#L28
};
calendarControl1.CellSize = new Size(50, 50);
calendarControl1.ContextButtons.Add(cb);
winforms-calendar-dateedit-cell-appearance-customization/VB/Calendar_CellStyleProvider/Form1.vb#L29
Dim cb As New ContextButton() With {.Alignment = ContextItemAlignment.TopNear, .Visibility=ContextItemVisibility.Hidden}
calendarControl1.CellSize = New Size(50, 50)
calendarControl1.ContextButtons.Add(cb)
See Also