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

Prints appointments in a month grid, optionally splitting months across pages or printing a configured number of weeks per page.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.Scheduler.dll

Syntax:

C#
public class SchedulerMonthlyPrintStyle : SchedulerPrintStyle, ICloneable

Inheritance: objectSchedulerPrintStyleSchedulerMonthlyPrintStyle

Implements: ICloneable

Inherited Members SchedulerPrintStyle.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 SchedulerMonthlyPrintStyle()

Creates a new instance of the class.

C#
public SchedulerMonthlyPrintStyle(DateTime startRange, DateTime endRange)
Parameters:startRangeDateTime

The start date of the printing range.

endRangeDateTime

The end date of the printing range.

Properties

Gets or sets the height of the appointments.

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

Gets or sets the height of the header of each cell.

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

Gets the last date printed, normalized to the end of its month or to a week range of at least WeeksPerPage.

C#
public override DateTime DateEndRange { get; set; }

Overrides: SchedulerPrintStyle.DateEndRange

Gets the first date printed, normalized to the start of its month or week according to PrintExactlyOneMonth.

C#
public override DateTime DateStartRange { get; set; }

Overrides: SchedulerPrintStyle.DateStartRange

Gets or sets a value indicating whether the nonworking days should be printed.

C#
[Browsable(true)]
public bool ExcludeNonWorkingDays { get; set; }

Gets or sets the image that is printed at the bottom of a cell when there are more appointments than can be shown.

C#
public Image OverflowImage { get; set; }

Gets or sets whether each month should be printed on a single separate page.

C#
[Browsable(true)]
public bool PrintExactlyOneMonth { get; set; }

Gets or sets whether a single month should be printed on two pages.

C#
[Browsable(true)]
public bool TwoPagesPerMonth { get; set; }

Gets or sets the width of the vertical header which displays the week ranges.

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

Gets or sets the number of weeks that should be printed on each page when PrintExactlyOneMonth is false.

C#
[Browsable(true)]
public int WeeksPerPage { get; set; }

Methods

Copies the base print settings and this style's month layout, week-count, and appointment sizing options.

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

The style that receives the settings.

Overrides: SchedulerPrintStyle.CopyProperties(SchedulerPrintStyle)

Draws the month grid, day headings, and appointment entries, showing the overflow image when a day has more entries than fit.

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 month grid.

pageNumberint

The one-based page number.

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

Draws the configured notes area, placing unlined notes on odd pages and lined notes on even pages when a month is split.

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)

Calculates pages from the selected month or week range, then applies two-page and resource-grouping multipliers.

C#
public override int GetNumberOfPages(Rectangle pageBounds, Graphics g)
Parameters:pageBoundsRectangle

The bounds available on each printed page.

gGraphics

The graphics context used for measurement by the base implementation.

Returns:

int

The number of pages required by this style.

Overrides: SchedulerPrintStyle.GetNumberOfPages(Rectangle, Graphics)

Gets the first date represented by a page, accounting for month/week mode, page splitting, and resource grouping.

C#
protected override DateTime GetPageDate(int pageNumber)
Parameters:pageNumberint

The one-based page number.

Returns:

DateTime

The first date represented by the page.

Overrides: SchedulerPrintStyle.GetPageDate(int)

Gets the resource represented by a page when printing is grouped by date or resource.

C#
protected override IResource GetPageResource(int pageNumber)
Parameters:pageNumberint

The one-based page number.

Returns:

IResource

The page's resource, or null when printing is not grouped.

Overrides: SchedulerPrintStyle.GetPageResource(int)