New to Telerik UI for WinForms? Start a free 30-day trial

Renders a month calendar and supports emphasizing designated dates.

Definition

Constructors

Creates a month calendar for the month containing the specified date.

C#
public CalendarPrintElement(DateTime date)
Parameters:dateDateTime

A date in the month to display.

Properties

Gets or sets a date that indicates which month should be displayed.

C#
public DateTime Date { get; set; }

Gets or sets a DateTimeFormatInfo instance which indicates the format of the calendar.

C#
public DateTimeFormatInfo DateTimeFormat { get; set; }

Methods

Draws the month heading, localized weekday names, and day numbers, using bold text for special dates.

C#
protected override void PaintElement(Graphics g, Rectangle rect)
Parameters:gGraphics

The graphics surface used to draw the calendar.

rectRectangle

The bounds available for the calendar.

Overrides: RadPrintElement.PaintElement(Graphics, Rectangle)

Sets a date as special e.g. its number will be drawn bold.

C#
public void SetSpecialDate(DateTime date)
Parameters:dateDateTime

The date to set.

Sets a date as regular e.g. its number will be drawn regular.

C#
public void UnsetSpecialDate(DateTime date)
Parameters:dateDateTime

The date to unset.