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

Prints appointments as a date-oriented list with day headings, appointment times, summaries, and descriptions.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.Scheduler.dll

Syntax:

C#
public class SchedulerDetailsPrintStyle : SchedulerPrintStyle, ICloneable

Inheritance: objectSchedulerPrintStyleSchedulerDetailsPrintStyle

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.DrawNotesArea(Graphics, Rectangle, int)SchedulerPrintStyle.GetPageDate(int)SchedulerPrintStyle.GetPageResource(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.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 SchedulerDetailsPrintStyle()

Creates a new instance of the class.

C#
public SchedulerDetailsPrintStyle(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 string that will be printed instead of date for all-day appointments

C#
public string AllDayString { get; set; }

Gets or sets the width of the area which displays appointments' date.

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

Gets or sets the height of appointments' summary.

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

Gets or sets the height of the element that displays the current date.

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

Gets or sets the conndition under which the printing should continue on a new page.

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

Gets or sets the string that will be printed to indicate that the appointment is all-day and its description has been previously printed

C#
public string PleaseSeeAboveString { get; set; }

Methods

Copies the shared settings and this style's page-break and row-size settings to another details style.

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

The print style that receives the settings.

Overrides: SchedulerPrintStyle.CopyProperties(SchedulerPrintStyle)

Draws or measures an all-day or multi-day appointment row; continuation rows use PleaseSeeAboveString.

C#
protected virtual void DrawAllDayAppointmentTitle(IEvent allDayAppointment, bool measureOnly, int currentYOffset)
Parameters:allDayAppointmentIEvent

The appointment represented by the row.

measureOnlybool

true to calculate layout without drawing.

currentYOffsetint

The vertical position at which the row begins.

Arranges and draws the date headings and appointment rows for the requested page.

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

The bounds available for appointment content.

graphicsGraphics

The graphics surface used to draw the page.

pageNumberint

The one-based page number to draw.

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

Draws or measures an appointment's date/time label and summary row; same-day all-day appointments use AllDayString.

C#
protected virtual void DrawAppointmentTitle(IEvent currentAppointment, bool measureOnly, int currentYOffset)
Parameters:currentAppointmentIEvent

The appointment represented by the row.

measureOnlybool

true to calculate layout without drawing.

currentYOffsetint

The vertical position at which the row begins.

Indicates that this print style does not draw a separate top area.

C#
protected override Rectangle DrawTopArea(Rectangle drawingArea, Graphics graphics, int pageNumber)
Parameters:drawingAreaRectangle

The available top-area bounds.

graphicsGraphics

The graphics surface used for printing.

pageNumberint

The one-based page number.

Returns:

Rectangle

An empty rectangle because no top area is drawn.

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

Clears the layout state retained while arranging pages, then completes base print cleanup.

C#
public override void EndPrint()

Overrides: SchedulerPrintStyle.EndPrint()

Measures the pages required by the date-oriented appointment layout.

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

The printable bounds used to measure appointment rows.

gGraphics

The graphics surface used to measure text.

Returns:

int

The number of pages required for the configured date range and content.

Overrides: SchedulerPrintStyle.GetNumberOfPages(Rectangle, Graphics)