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

Represents a print style which prints on each page appointments in a single day.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.Scheduler.dll

Syntax:

C#
public class SchedulerDailyPrintStyle : SchedulerPrintStyle, ICloneable

Inheritance: objectSchedulerPrintStyleSchedulerDailyPrintStyle

Derived Classes: SchedulerAgendaPrintStyle

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.DateStartRangeSchedulerPrintStyle.DateEndRangeSchedulerPrintStyle.TotalDaysSchedulerPrintStyle.TimeStartRangeSchedulerPrintStyle.TimeEndRangeSchedulerPrintStyle.SchedulerSchedulerPrintStyle.IsGroupedSchedulerPrintStyle.PrintElementFormattingSchedulerPrintStyle.CellElementFormattingSchedulerPrintStyle.AppointmentElementFormattingSchedulerPrintStyle.PrintElementPaintSchedulerPrintStyle.CellElementPaintSchedulerPrintStyle.AppointmentElementPaint...

Constructors

Creates a new instance of the class.

C#
public SchedulerDailyPrintStyle()

Creates a new instance of the class.

C#
public SchedulerDailyPrintStyle(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 in the AllDay area.

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

Gets or sets the width of the hours column.

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

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

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

Gets or sets whether two pages should be printer for a single date.

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

Methods

Copies the base print settings and this style's all-day sizing, hour-column width, and page-splitting option.

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 at the top of the page, limited by MaxAllDayAreaHeight.

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

The date represented by the page.

resourceIResource

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

appAreaRectangle

The bounds available for the all-day area.

graphicsGraphics

The graphics context used to draw the appointments.

Returns:

int

The height consumed by the visible all-day appointments.

Draws timed appointments in the day's time grid, placing overlapping appointments in separate columns.

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

The date represented by the page.

resourceIResource

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

appAreaRectangle

The bounds available for timed appointments.

graphicsGraphics

The graphics context used to draw the appointments.

Draws one day's all-day appointments and time grid, or a separate notes page when two-page-per-day printing is enabled.

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 page.

pageNumberint

The one-based page number.

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

Draws the hourly labels and appointment cells for the configured time range, subdividing hours to match the active day-view interval.

C#
protected virtual void DrawCells(Rectangle appArea, Graphics graphics, DateTime currentDate)
Parameters:appAreaRectangle

The bounds available for the time grid.

graphicsGraphics

The graphics context used to draw the cells.

currentDateDateTime

The date represented by the page.

Draws the notes area on a single-page day; in two-page mode, notes are placed on their own paired page instead.

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 notes use a separate page.

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

Draws the notes-only page paired with a day when TwoPagesPerDay is enabled.

C#
protected virtual void DrawNotesPage(Graphics graphics, Rectangle appArea, int pageNumber)
Parameters:graphicsGraphics

The graphics context used to draw the page.

appAreaRectangle

The page area available for notes.

pageNumberint

The one-based page number.

Gets the base page count, doubled when each date uses a separate appointment page and notes page.

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

The page bounds used by the print operation.

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 printed date for a page, mapping each pair of pages to the same date when two-page-per-day mode is enabled.

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

The one-based page number.

Returns:

DateTime

The date represented by the page.

Overrides: SchedulerPrintStyle.GetPageDate(int)

Gets the resource represented by a page, accounting for paired pages in two-page-per-day mode.

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)