SchedulerPrintStyle
Represents a base class for different print styles of RadScheduler.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.Scheduler.dll
Syntax:
public abstract class SchedulerPrintStyle : ICloneable
Inheritance: objectSchedulerPrintStyle
Derived Classes:
Implements:
Constructors
Creates a new instance of the class.
public SchedulerPrintStyle()
Properties
Gets or sets the font of the appointments.
[Browsable(true)]
public Font AppointmentFont { get; set; }
Gets or sets the end date of the date range which describes which appointments should be printed.
[Browsable(true)]
public virtual DateTime DateEndRange { get; set; }
Gets or sets the font of the date headers.
[Browsable(true)]
public Font DateHeadingFont { get; set; }
Gets or sets the start date of the date range which describes which appointments should be printed.
[Browsable(true)]
public virtual DateTime DateStartRange { get; set; }
Gets or sets whether a page title should be printed.
[Browsable(true)]
public bool DrawPageTitle { get; set; }
Gets or sets whether a calendar should be printed inside the title area.
[Browsable(true)]
public bool DrawPageTitleCalendar { get; set; }
Gets or sets the groping mode of the printed document.
[Browsable(true)]
public SchedulerPrintGroupType GroupType { get; set; }
Gets or sets the height of the heading area.
[Browsable(false)]
public int HeadingAreaHeight { get; set; }
Gets whether printing is grouped and the source Scheduler currently has at least one resource.
protected bool IsGrouped { get; }
Gets or sets the width of the notes area.
[Browsable(true)]
public int NotesAreaWidth { get; set; }
Gets or sets the font of the page heading.
[Browsable(true)]
public Font PageHeadingFont { get; set; }
Gets the RadScheduler that is being printed.
[Browsable(false)]
public RadScheduler Scheduler { get; }
Gets or sets whether a lined area for handwritten notes should be printed.
[Browsable(true)]
public bool ShowLinedNotesArea { get; set; }
Gets or sets whether an area for handwritten notes should be printed.
[Browsable(true)]
public bool ShowNotesArea { get; set; }
Gets or sets a value indicating whether the current timezone should be printed inside page title area.
[Browsable(true)]
public bool ShowTimezone { get; set; }
Gets or sets the end time of the time interval which describes which appointments should be printer for every single date.
[Browsable(true)]
public virtual TimeSpan TimeEndRange { get; set; }
Gets or sets the start time of the time interval which describes which appointments should be printer for every single date.
[Browsable(true)]
public virtual TimeSpan TimeStartRange { get; set; }
Methods
Creates a new instance of the same print-style type and delegates setting transfer to CopyProperties(SchedulerPrintStyle).
public object Clone()
A new print style populated by its CopyProperties(SchedulerPrintStyle) implementation.
Implements:
Orders appointments by start time, then by longer duration first for ties, and finally by summary.
Orders appointments by Scheduler resource order, then by the same time, duration, and summary rules as CompareAppointments(IEvent, IEvent).
Copies the base print range, time range, fonts, title, and notes settings to another style. Derived styles can override this method to copy their additional settings.
public virtual void CopyProperties(SchedulerPrintStyle destination)
The print style that receives the settings.
Rounds a time up to the active day view's cell interval, or to an hour boundary for other view types.
Rounds a time down to the active day view's cell interval, or to an hour boundary for other view types.
Draws a AppointmentPrintElement.
protected void DrawAppointment(AppointmentPrintElement element, Graphics graphics, Rectangle bounds)
The element.
graphicsGraphicsThe graphics used for drawing.
boundsRectangleThe bounds of the element.
Draws a AppointmentPrintElement.
protected void DrawAppointment(AppointmentPrintElement element, Graphics graphics, RectangleF bounds)
The element.
graphicsGraphicsThe graphics used for drawing.
boundsRectangleFThe bounds of the element.
Draws a SchedulerPrintCellElement.
protected void DrawCell(SchedulerPrintCellElement element, Graphics graphics, Rectangle bounds)
The element.
graphicsGraphicsThe graphics used for drawing.
boundsRectangleThe bounds of the element.
Draws a SchedulerPrintCellElement.
protected void DrawCell(SchedulerPrintCellElement element, Graphics graphics, RectangleF bounds)
The element.
graphicsGraphicsThe graphics used for drawing.
boundsRectangleFThe bounds of the element.
Draws a RadPrintElement.
protected void DrawElement(RadPrintElement element, Graphics graphics, Rectangle bounds)
The element.
graphicsGraphicsThe graphics used for drawing.
boundsRectangleThe bounds of the element.
Draws a RadPrintElement.
protected void DrawElement(RadPrintElement element, Graphics graphics, RectangleF bounds)
The element.
graphicsGraphicsThe graphics used for drawing.
boundsRectangleFThe bounds of the element.
Draws an area for handwritten notes.
protected virtual Rectangle DrawNotesArea(Graphics graphics, Rectangle drawingArea, int pageNumber)
The graphics used for drawing.
drawingAreaRectangleThe area in which the notes should be drawn.
pageNumberint1-based consecutive number of the page to be drawn in.
Returns:The bounds of the notes area.
Draws the page inside a given graphics area.
Draws the page heading.
Provides a lifecycle hook called when the Scheduler's print operation ends.
public virtual void EndPrint()
Gets the appointments of the current source that are inside the time interval specified by the DateStartRange and DateEndRange properties.
Gets timed appointments that overlap the configured daily time range and, when requested, all-day appointments for one date.
protected List<IEvent> GetAppointments(DateTime date, bool includeAllday, IResource resource)
The date whose appointments are returned.
includeAlldaybooltrue to include all-day appointments; otherwise, only timed appointments are included.
resourceIResourceAn optional resource filter; null includes appointments for all resources.
Returns:List<IEvent>
The matching appointments, ordered by start time, duration, and summary.
Gets the appointments of the current source that a given date contains.
Gets appointments from the configured print date range, applies the daily time-window endpoint checks, optionally filters by resource, and sorts by appointment start time. The date arguments do not constrain results. For multi-day appointments, the checks use the appointment's start date for the window start and its end date for the window end, which can admit appointments that overlap neither day's window.
protected List<IEvent> GetAppointments(DateTime startDate, DateTime endDate, IResource resource)
A start-date bound; it does not filter the results in the current implementation.
endDateDateTimeAn end-date bound; it does not filter the results in the current implementation.
resourceIResourceWhen non-null, restricts results to appointments assigned to this resource.
Returns:List<IEvent>
Appointments in the configured print range that pass the daily time-window checks.
Gets appointments in the configured print date range and daily time window, ordering them by resource when requested. The supplied interval is also used to include overlapping all-day appointments.
protected List<IEvent> GetAppointments(DateTime startDate, DateTime endDate, SchedulerPrintGroupType sortType)
The start of the interval used to include all-day appointments.
endDateDateTimeThe end of the interval used to include all-day appointments.
sortTypeSchedulerPrintGroupTypeThe grouping mode used to choose chronological or resource-based ordering.
Returns:List<IEvent>
The matching appointments in the requested order.
Gets the appointments of the current source that are inside a specified time interval.
Loads a bitmap from an embedded resource in the assembly that contains SchedulerPrintStyle.
protected Image LoadImage(string name)
The manifest resource name.
Returns:The bitmap loaded from the resource stream.
Exceptions: NullReferenceExceptionThe manifest resource could not be found.
Raises AppointmentElementFormatting before an appointment print element is painted.
protected virtual void OnAppointmentElementFormatting(PrintAppointmentEventArgs args)
The appointment element that can be formatted before painting.
Provides the post-paint dispatch hook for appointment print elements. The base implementation gates dispatch on PrintElementFormatting rather than AppointmentElementPaint and invokes the latter without a null check, so the event can be skipped or a missing paint handler can throw.
protected virtual void OnAppointmentElementPaint(PrintAppointmentPaintEventArgs args)
The painted appointment element, graphics context, and bounds.
Raises CellElementFormatting before a Scheduler cell is painted.
protected virtual void OnCellElementFormatting(PrintSchedulerCellEventArgs args)
The cell that can be formatted before painting.
Raises CellElementPaint after a Scheduler cell is painted.
protected virtual void OnCellElementPaint(PrintSchedulerCellPaintEventArgs args)
The painted cell, graphics context, and bounds.
Raises PrintElementFormatting before a print element is painted.
protected virtual void OnPrintElementFormatting(PrintElementEventArgs args)
The element that can be formatted before painting.
Raises PrintElementPaint after a print element is painted.
protected virtual void OnPrintElementPaint(PrintElementPaintEventArgs args)
The painted element, graphics context, and bounds.
Events
Fires when an appointment element is being formatted before it is painted.
public event PrintAppointmentEventHandler AppointmentElementFormatting
Fires when an appointment element is painted.
public event PrintAppointmentPaintEventHandler AppointmentElementPaint
Fires when a cell element is being formatted before it is painted.
public event PrintSchedulerCellEventHandler CellElementFormatting
Fires when a cell element is painted.
public event PrintSchedulerCellPaintEventHandler CellElementPaint
Fires when a print element is being formatted before it is painted.
public event PrintElementEventHandler PrintElementFormatting
Fires when a print element is painted.
public event PrintElementPaintEventHandler PrintElementPaint