ClassSchedulerPrintStyle
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
SchedulerPrintStyle()
Creates a new instance of the class.
Declaration
public SchedulerPrintStyle()
SchedulerPrintStyle(DateTime, DateTime)
Creates a new instance of the class.
Properties
AppointmentFont
Gets or sets the font of the appointments.
Declaration
[Browsable(true)]
public Font AppointmentFont { get; set; }
Property Value
DateEndRange
Gets or sets the end date of the date range which describes which appointments should be printed.
Declaration
[Browsable(true)]
public virtual DateTime DateEndRange { get; set; }
Property Value
DateHeadingFont
Gets or sets the font of the date headers.
Declaration
[Browsable(true)]
public Font DateHeadingFont { get; set; }
Property Value
DateStartRange
Gets or sets the start date of the date range which describes which appointments should be printed.
Declaration
[Browsable(true)]
public virtual DateTime DateStartRange { get; set; }
Property Value
DrawPageTitle
Gets or sets whether a page title should be printed.
Declaration
[Browsable(true)]
public bool DrawPageTitle { get; set; }
Property Value
DrawPageTitleCalendar
Gets or sets whether a calendar should be printed inside the title area.
Declaration
[Browsable(true)]
public bool DrawPageTitleCalendar { get; set; }
Property Value
GroupType
Gets or sets the groping mode of the printed document.
Declaration
[Browsable(true)]
public SchedulerPrintGroupType GroupType { get; set; }
Property Value
HeadingAreaHeight
Gets or sets the height of the heading area.
Declaration
[Browsable(false)]
public int HeadingAreaHeight { get; set; }
Property Value
NotesAreaWidth
Gets or sets the width of the notes area.
Declaration
[Browsable(true)]
public int NotesAreaWidth { get; set; }
Property Value
PageHeadingFont
Gets or sets the font of the page heading.
Declaration
[Browsable(true)]
public Font PageHeadingFont { get; set; }
Property Value
Scheduler
Gets the RadScheduler that is being printed.
Declaration
[Browsable(false)]
public RadScheduler Scheduler { get; }
Property Value
ShowLinedNotesArea
Gets or sets whether a lined area for handwritten notes should be printed.
Declaration
[Browsable(true)]
public bool ShowLinedNotesArea { get; set; }
Property Value
ShowNotesArea
Gets or sets whether an area for handwritten notes should be printed.
Declaration
[Browsable(true)]
public bool ShowNotesArea { get; set; }
Property Value
ShowTimezone
Gets or sets a value indicating whether the current timezone should be printed inside page title area.
Declaration
[Browsable(true)]
public bool ShowTimezone { get; set; }
Property Value
TimeEndRange
Gets or sets the end time of the time interval which describes which appointments should be printer for every single date.
Declaration
[Browsable(true)]
public virtual TimeSpan TimeEndRange { get; set; }
Property Value
TimeStartRange
Gets or sets the start time of the time interval which describes which appointments should be printer for every single date.
Declaration
[Browsable(true)]
public virtual TimeSpan TimeStartRange { get; set; }
Property Value
Methods
CopyProperties(SchedulerPrintStyle)
Declaration
public virtual void CopyProperties(SchedulerPrintStyle destination)
Parameters
destination
DrawAppointment(AppointmentPrintElement, Graphics, Rectangle)
Draws a AppointmentPrintElement.
Declaration
protected void DrawAppointment(AppointmentPrintElement element, Graphics graphics, Rectangle bounds)
Parameters
element
The element.
graphics
The graphics used for drawing.
bounds
The bounds of the element.
DrawAppointment(AppointmentPrintElement, Graphics, RectangleF)
Draws a AppointmentPrintElement.
Declaration
protected void DrawAppointment(AppointmentPrintElement element, Graphics graphics, RectangleF bounds)
Parameters
element
The element.
graphics
The graphics used for drawing.
bounds
The bounds of the element.
DrawAppointmentsArea(Rectangle, Graphics, int)
Draws the content area of the page.
DrawCell(SchedulerPrintCellElement, Graphics, Rectangle)
Draws a SchedulerPrintCellElement.
Declaration
protected void DrawCell(SchedulerPrintCellElement element, Graphics graphics, Rectangle bounds)
Parameters
element
The element.
graphics
The graphics used for drawing.
bounds
The bounds of the element.
DrawCell(SchedulerPrintCellElement, Graphics, RectangleF)
Draws a SchedulerPrintCellElement.
Declaration
protected void DrawCell(SchedulerPrintCellElement element, Graphics graphics, RectangleF bounds)
Parameters
element
The element.
graphics
The graphics used for drawing.
bounds
The bounds of the element.
DrawElement(RadPrintElement, Graphics, Rectangle)
Draws a RadPrintElement.
Declaration
protected void DrawElement(RadPrintElement element, Graphics graphics, Rectangle bounds)
Parameters
element
The element.
graphics
The graphics used for drawing.
bounds
The bounds of the element.
DrawElement(RadPrintElement, Graphics, RectangleF)
Draws a RadPrintElement.
Declaration
protected void DrawElement(RadPrintElement element, Graphics graphics, RectangleF bounds)
Parameters
element
The element.
graphics
The graphics used for drawing.
bounds
The bounds of the element.
DrawNotesArea(Graphics, Rectangle, int)
Draws an area for handwritten notes.
Declaration
protected virtual Rectangle DrawNotesArea(Graphics graphics, Rectangle drawingArea, int pageNumber)
Parameters
graphics
The graphics used for drawing.
drawingArea
The area in which the notes should be drawn.
pageNumber
1-based consecutive number of the page to be drawn in.
Returns
The bounds of the notes area.
DrawPage(Graphics, Rectangle, int)
Draws the page inside a given graphics area.
Declaration
public virtual void DrawPage(Graphics graphics, Rectangle drawingArea, int pageNumber)
Parameters
graphics
The graphics used for drawing.
drawingArea
The area in which the page should be drawn.
pageNumber
One-based consecutive number of the page to be drawn.
DrawTopArea(Rectangle, Graphics, int)
Draws the page heading.
Declaration
protected virtual Rectangle DrawTopArea(Rectangle drawingArea, Graphics graphics, int pageNumber)
Parameters
drawingArea
The area in which the heading should be drawn.
graphics
The graphics used for drawing.
pageNumber
The number of the page.
Returns
The bounds of the top area.
EndPrint()
Declaration
public virtual void EndPrint()
GetAppointments()
Gets the appointments of the current source that are inside the time interval specified by the DateStartRange and DateEndRange properties.
Declaration
protected List<IEvent> GetAppointments()
Returns
List<IEvent>
A list of appointments.
GetAppointments(DateTime)
Gets the appointments of the current source that a given date contains.
GetAppointments(DateTime, DateTime)
Gets the appointments of the current source that are inside a specified time interval.
GetAppointments(DateTime, DateTime, SchedulerPrintGroupType)
Declaration
protected List<IEvent> GetAppointments(DateTime startDate, DateTime endDate, SchedulerPrintGroupType sortType)
Parameters
startDate
endDate
sortType
Returns
List<IEvent>
GetAppointments(DateTime, bool)
Gets the appointments of the current source that a given date contains.
GetNumberOfPages(Rectangle, Graphics)
Returns the potential number of pages.
GetPageDate(int)
Gets the date that corresponds to a given page.
GetPageResource(int)
Gets the resource that corresponds to a given page.
GetRoundedDateTime(DateTime, bool)
Gets a time rounded to the cells of the day view table.
OnAppointmentElementFormatting(PrintAppointmentEventArgs)
Declaration
protected virtual void OnAppointmentElementFormatting(PrintAppointmentEventArgs args)
Parameters
args
OnAppointmentElementPaint(PrintAppointmentPaintEventArgs)
Declaration
protected virtual void OnAppointmentElementPaint(PrintAppointmentPaintEventArgs args)
Parameters
args
OnCellElementFormatting(PrintSchedulerCellEventArgs)
Declaration
protected virtual void OnCellElementFormatting(PrintSchedulerCellEventArgs args)
Parameters
args
OnCellElementPaint(PrintSchedulerCellPaintEventArgs)
Declaration
protected virtual void OnCellElementPaint(PrintSchedulerCellPaintEventArgs args)
Parameters
args
OnPrintElementFormatting(PrintElementEventArgs)
Declaration
protected virtual void OnPrintElementFormatting(PrintElementEventArgs args)
Parameters
args
OnPrintElementPaint(PrintElementPaintEventArgs)
Declaration
protected virtual void OnPrintElementPaint(PrintElementPaintEventArgs args)
Parameters
args
Events
AppointmentElementFormatting
Fires when an appointment element is being formatted before it is painted.
Declaration
public event PrintAppointmentEventHandler AppointmentElementFormatting
Event Value
AppointmentElementPaint
Fires when an appointment element is painted.
Declaration
public event PrintAppointmentPaintEventHandler AppointmentElementPaint
Event Value
CellElementFormatting
Fires when a cell element is being formatted before it is painted.
Declaration
public event PrintSchedulerCellEventHandler CellElementFormatting
Event Value
CellElementPaint
Fires when a cell element is painted.
Declaration
public event PrintSchedulerCellPaintEventHandler CellElementPaint
Event Value
PrintElementFormatting
Fires when a print element is being formatted before it is painted.
Declaration
public event PrintElementEventHandler PrintElementFormatting
Event Value
PrintElementPaint
Fires when a print element is painted.
Declaration
public event PrintElementPaintEventHandler PrintElementPaint
Event Value