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:
public class SchedulerDetailsPrintStyle : SchedulerPrintStyle, ICloneable
Inheritance: objectSchedulerPrintStyleSchedulerDetailsPrintStyle
Implements:
Inherited Members
Constructors
Creates a new instance of the class.
public SchedulerDetailsPrintStyle()
Properties
Gets or sets the string that will be printed instead of date for all-day appointments
public string AllDayString { get; set; }
Gets or sets the width of the area which displays appointments' date.
[Browsable(false)]
public int AppointmentDateWidth { get; set; }
Gets or sets the height of appointments' summary.
[Browsable(false)]
public int AppointmentTitleHeight { get; set; }
Gets or sets the height of the element that displays the current date.
[Browsable(false)]
public int DayHeaderHeight { get; set; }
Gets or sets the conndition under which the printing should continue on a new page.
[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
public string PleaseSeeAboveString { get; set; }
Methods
Copies the shared settings and this style's page-break and row-size settings to another details style.
public override void CopyProperties(SchedulerPrintStyle destination)
The print style that receives the settings.
Overrides:
Draws or measures an all-day or multi-day appointment row; continuation rows use PleaseSeeAboveString.
protected virtual void DrawAllDayAppointmentTitle(IEvent allDayAppointment, bool measureOnly, int currentYOffset)
The appointment represented by the row.
measureOnlybooltrue to calculate layout without drawing.
currentYOffsetintThe vertical position at which the row begins.
Arranges and draws the date headings and appointment rows for the requested page.
Draws or measures an appointment's date/time label and summary row; same-day all-day appointments use AllDayString.
protected virtual void DrawAppointmentTitle(IEvent currentAppointment, bool measureOnly, int currentYOffset)
The appointment represented by the row.
measureOnlybooltrue to calculate layout without drawing.
currentYOffsetintThe vertical position at which the row begins.
Indicates that this print style does not draw a separate top area.
protected override Rectangle DrawTopArea(Rectangle drawingArea, Graphics graphics, int pageNumber)
The available top-area bounds.
graphicsGraphicsThe graphics surface used for printing.
pageNumberintThe one-based page number.
Returns:An empty rectangle because no top area is drawn.
Overrides:
Clears the layout state retained while arranging pages, then completes base print cleanup.
public override void EndPrint()
Overrides:
Measures the pages required by the date-oriented appointment layout.
public override int GetNumberOfPages(Rectangle pageBounds, Graphics g)
The printable bounds used to measure appointment rows.
gGraphicsThe graphics surface used to measure text.
Returns:The number of pages required for the configured date range and content.
Overrides: