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

Prints a weekly calendar as day columns with a time ruler and an optional all-day appointment area.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.Scheduler.dll

Syntax:

C#
public class SchedulerWeeklyCalendarPrintStyle : SchedulerBaseWeeklyPrintStyle, ICloneable

Inheritance: objectSchedulerPrintStyleSchedulerBaseWeeklyPrintStyleSchedulerWeeklyCalendarPrintStyle

Implements: ICloneable

Inherited Members SchedulerBaseWeeklyPrintStyle.GetPageDate(int)SchedulerBaseWeeklyPrintStyle.GetPageResource(int)SchedulerBaseWeeklyPrintStyle.GetNumberOfPages(Rectangle, Graphics)SchedulerBaseWeeklyPrintStyle.OverflowImageSchedulerBaseWeeklyPrintStyle.ExcludeNonWorkingDaysSchedulerBaseWeeklyPrintStyle.TwoPagesPerWeekSchedulerBaseWeeklyPrintStyle.FirstDayOfWeekSchedulerBaseWeeklyPrintStyle.AppointmentHeightSchedulerBaseWeeklyPrintStyle.DateStartRangeSchedulerBaseWeeklyPrintStyle.DateEndRangeSchedulerPrintStyle.OnPrintElementFormatting(PrintElementEventArgs)SchedulerPrintStyle.OnCellElementFormatting(PrintSchedulerCellEventArgs)SchedulerPrintStyle.OnAppointmentElementFormatting(PrintAppointmentEventArgs)SchedulerPrintStyle.OnPrintElementPaint(PrintElementPaintEventArgs)SchedulerPrintStyle.OnCellElementPaint(PrintSchedulerCellPaintEventArgs)SchedulerPrintStyle.OnAppointmentElementPaint(PrintAppointmentPaintEventArgs)SchedulerPrintStyle.DrawPage(Graphics, Rectangle, int)SchedulerPrintStyle.DrawTopArea(Rectangle, Graphics, int)SchedulerPrintStyle.DrawElement(RadPrintElement, Graphics, Rectangle)SchedulerPrintStyle.DrawElement(RadPrintElement, Graphics, RectangleF)SchedulerPrintStyle.DrawAppointment(AppointmentPrintElement, Graphics, Rectangle)SchedulerPrintStyle.DrawAppointment(AppointmentPrintElement, Graphics, RectangleF)SchedulerPrintStyle.DrawCell(SchedulerPrintCellElement, Graphics, Rectangle)SchedulerPrintStyle.DrawCell(SchedulerPrintCellElement, Graphics, RectangleF)SchedulerPrintStyle.GetAppointments()SchedulerPrintStyle.GetAppointments(DateTime)SchedulerPrintStyle.GetAppointments(DateTime, bool)SchedulerPrintStyle.GetAppointments(DateTime, bool, IResource)SchedulerPrintStyle.GetAppointments(DateTime, DateTime)SchedulerPrintStyle.GetAppointments(DateTime, DateTime, IResource)SchedulerPrintStyle.GetAppointments(DateTime, DateTime, SchedulerPrintGroupType)SchedulerPrintStyle.CompareAppointments(IEvent, IEvent)SchedulerPrintStyle.CompareAppointmentsByResource(IEvent, IEvent)SchedulerPrintStyle.LoadImage(string)SchedulerPrintStyle.DateCeiling(DateTime)SchedulerPrintStyle.DateFloor(DateTime)SchedulerPrintStyle.GetRoundedDateTime(DateTime, bool)SchedulerPrintStyle.Clone()SchedulerPrintStyle.EndPrint()SchedulerPrintStyle.GroupTypeSchedulerPrintStyle.ShowTimezoneSchedulerPrintStyle.HeadingAreaHeightSchedulerPrintStyle.NotesAreaWidthSchedulerPrintStyle.DrawPageTitleSchedulerPrintStyle.DrawPageTitleCalendarSchedulerPrintStyle.ShowNotesAreaSchedulerPrintStyle.ShowLinedNotesAreaSchedulerPrintStyle.DateHeadingFontSchedulerPrintStyle.AppointmentFontSchedulerPrintStyle.PageHeadingFontSchedulerPrintStyle.TotalDaysSchedulerPrintStyle.TimeStartRangeSchedulerPrintStyle.TimeEndRangeSchedulerPrintStyle.SchedulerSchedulerPrintStyle.IsGroupedSchedulerPrintStyle.PrintElementFormattingSchedulerPrintStyle.CellElementFormattingSchedulerPrintStyle.AppointmentElementFormattingSchedulerPrintStyle.PrintElementPaintSchedulerPrintStyle.CellElementPaintSchedulerPrintStyle.AppointmentElementPaint...

Constructors

Creates a new instance of the class.

C#
public SchedulerWeeklyCalendarPrintStyle()

Creates a new instance of the class.

C#
public SchedulerWeeklyCalendarPrintStyle(DateTime startDate, DateTime endDate)
Parameters:startDateDateTime

The start date of the printing range.

endDateDateTime

The end date of the printing range.

Properties

Gets or sets the height of the appointments in the AllDay area.

C#
[Browsable(false)]
public int AllDayAppointmentHeight { get; set; }

Gets or sets the height of the header area.

C#
[Browsable(false)]
public int HeaderAreaHeight { get; set; }

Gets or sets thefont of the header area cells.

C#
[Browsable(false)]
public Font HeaderCellFont { get; set; }

Gets or sets the width of the hours column.

C#
[Browsable(false)]
public float HoursColumnWidth { get; set; }

Gets or sets the maximum height that the AllDay area can occupy.

C#
[Browsable(false)]
public int MaxAllDayAreaHeight { get; set; }

Methods

Copies the base print settings and weekly calendar options to another weekly calendar style.

C#
public override void CopyProperties(SchedulerPrintStyle destination)
Parameters:destinationSchedulerPrintStyle

The style that receives the settings.

Overrides: SchedulerPrintStyle.CopyProperties(SchedulerPrintStyle)

Draws all-day and multi-day appointments across their date columns, stacking overlapping spans within the configured height.

C#
protected virtual float DrawAllDayArea(DateTime currentDate, IResource resource, RectangleF appArea, Graphics graphics, int pageNumber)
Parameters:currentDateDateTime

The first date represented by the page.

resourceIResource

The resource represented by the page, or null when ungrouped.

appAreaRectangleF

The bounds available for the all-day area.

graphicsGraphics

The graphics context used to draw the appointments.

pageNumberint

The one-based page number.

Returns:

float

The height consumed by the visible all-day rows.

Draws timed appointments for one date, placing overlapping appointments in separate columns.

C#
protected virtual void DrawAppointments(DateTime currentDate, IResource resource, RectangleF appArea, Graphics graphics)
Parameters:currentDateDateTime

The date represented by the column.

resourceIResource

The resource represented by the page, or null when ungrouped.

appAreaRectangleF

The bounds available for timed appointments.

graphicsGraphics

The graphics context used to draw the appointments.

Draws the day headers, all-day rows, time grid, and timed appointments for the page's portion of the week.

C#
protected override void DrawAppointmentsArea(Rectangle appArea, Graphics graphics, int pageNumber)
Parameters:appAreaRectangle

The content bounds available on this page.

graphicsGraphics

The graphics context used to draw the calendar.

pageNumberint

The one-based page number.

Overrides: SchedulerPrintStyle.DrawAppointmentsArea(Rectangle, Graphics, int)

Draws hourly time-ruler cells and the day-by-day appointment grid for the page.

C#
protected virtual void DrawCells(RectangleF appArea, Graphics graphics, int pageNumber)
Parameters:appAreaRectangleF

The bounds available for the time grid.

graphicsGraphics

The graphics context used to draw the cells.

pageNumberint

The one-based page number.

Draws the date headings for the page's day columns and the blank cell above the time ruler.

C#
protected virtual void DrawHeaderCells(RectangleF appArea, Graphics graphics, DateTime currentDate, int pageNumber)
Parameters:appAreaRectangleF

The bounds available for the header row.

graphicsGraphics

The graphics context used to draw the cells.

currentDateDateTime

The first date represented by the page.

pageNumberint

The one-based page number.

Draws notes on the second page of a split week; for an unsplit week, uses the base notes layout.

C#
protected override Rectangle DrawNotesArea(Graphics graphics, Rectangle drawingArea, int pageNumber)
Parameters:graphicsGraphics

The graphics context used to draw the notes.

drawingAreaRectangle

The area available for page content.

pageNumberint

The one-based page number.

Returns:

Rectangle

The notes bounds, or an empty rectangle when this page has no notes area.

Overrides: SchedulerPrintStyle.DrawNotesArea(Graphics, Rectangle, int)

Gets the number of day columns on a page after excluding days and splitting a week when configured.

C#
protected virtual int GetNumberOfDays(int pageNumber)
Parameters:pageNumberint

The one-based page number.

Returns:

int

The number of day columns to draw.