Back to Devexpress

CalendarControlBase.CellSize Property

windowsforms-devexpress-dot-xtraeditors-dot-controls-dot-calendarcontrolbase-2a28d630.md

latest2.7 KB
Original Source

CalendarControlBase.CellSize Property

Gets or sets calendar cell size.

Namespace : DevExpress.XtraEditors.Controls

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DXCategory("Layout")]
public Size CellSize { get; set; }
vb
<DXCategory("Layout")>
Public Property CellSize As Size

Property Value

TypeDescription
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

csharp
};
calendarControl1.CellSize = new Size(50, 50);
calendarControl1.ContextButtons.Add(cb);

winforms-calendar-dateedit-cell-appearance-customization/VB/Calendar_CellStyleProvider/Form1.vb#L29

vb
Dim cb As New ContextButton() With {.Alignment = ContextItemAlignment.TopNear, .Visibility=ContextItemVisibility.Hidden}
calendarControl1.CellSize = New Size(50, 50)
calendarControl1.ContextButtons.Add(cb)

See Also

CellPadding

CalendarControlBase Class

CalendarControlBase Members

DevExpress.XtraEditors.Controls Namespace