Class SchedulerPrintStyle
Represents a base class for different print styles of RadScheduler.
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.Scheduler.dll
Syntax
public abstract class SchedulerPrintStyle : ICloneable
Constructors
SchedulerPrintStyle()
Creates a new instance of the class.
Declaration
public SchedulerPrintStyle()
SchedulerPrintStyle(DateTime, DateTime)
Creates a new instance of the class.
Declaration
public SchedulerPrintStyle(DateTime startRange, DateTime endRange)
Parameters
System. The start date of the printing range. |
System. The end date of the printing range. |
Properties
AppointmentFont
Gets or sets the font of the appointments.
Declaration
public Font AppointmentFont { get; set; }
Property Value
System.
|
DateEndRange
Gets or sets the end date of the date range which describes which appointments should be printed.
Declaration
public virtual DateTime DateEndRange { get; set; }
Property Value
System.
|
DateHeadingFont
Gets or sets the font of the date headers.
Declaration
public Font DateHeadingFont { get; set; }
Property Value
System.
|
DateStartRange
Gets or sets the start date of the date range which describes which appointments should be printed.
Declaration
public virtual DateTime DateStartRange { get; set; }
Property Value
System.
|
DrawPageTitle
Gets or sets whether a page title should be printed.
Declaration
public bool DrawPageTitle { get; set; }
Property Value
System.
|
DrawPageTitleCalendar
Gets or sets whether a calendar should be printed inside the title area.
Declaration
public bool DrawPageTitleCalendar { get; set; }
Property Value
System.
|
GroupType
Gets or sets the groping mode of the printed document.
Declaration
public SchedulerPrintGroupType GroupType { get; set; }
Property Value
HeadingAreaHeight
Gets or sets the height of the heading area.
Declaration
public int HeadingAreaHeight { get; set; }
Property Value
System.
|
IsGrouped
Declaration
protected bool IsGrouped { get; }
Property Value
System.
|
NotesAreaWidth
Gets or sets the width of the notes area.
Declaration
public int NotesAreaWidth { get; set; }
Property Value
System.
|
PageHeadingFont
Gets or sets the font of the page heading.
Declaration
public Font PageHeadingFont { get; set; }
Property Value
System.
|
Scheduler
Gets the RadScheduler that is being printed.
Declaration
public RadScheduler Scheduler { get; }
Property Value
ShowLinedNotesArea
Gets or sets whether a lined area for handwritten notes should be printed.
Declaration
public bool ShowLinedNotesArea { get; set; }
Property Value
System.
|
ShowNotesArea
Gets or sets whether an area for handwritten notes should be printed.
Declaration
public bool ShowNotesArea { get; set; }
Property Value
System.
|
ShowTimezone
Gets or sets a value indicating whether the current timezone should be printed inside page title area.
Declaration
public bool ShowTimezone { get; set; }
Property Value
System.
|
TimeEndRange
Gets or sets the end time of the time interval which describes which appointments should be printer for every single date.
Declaration
public virtual TimeSpan TimeEndRange { get; set; }
Property Value
System.
|
TimeStartRange
Gets or sets the start time of the time interval which describes which appointments should be printer for every single date.
Declaration
public virtual TimeSpan TimeStartRange { get; set; }
Property Value
System.
|
TotalDays
Declaration
protected int TotalDays { get; }
Property Value
System.
|
Methods
Clone()
Declaration
public object Clone()
Returns
System.
|
Implements
CompareAppointments(IEvent, IEvent)
Declaration
protected int CompareAppointments(IEvent x, IEvent y)
Parameters
Returns
System.
|
CompareAppointmentsByResource(IEvent, IEvent)
Declaration
protected int CompareAppointmentsByResource(IEvent x, IEvent y)
Parameters
Returns
System.
|
CopyProperties(SchedulerPrintStyle)
Declaration
public virtual void CopyProperties(SchedulerPrintStyle destination)
Parameters
Scheduler
|
DateCeiling(DateTime)
Declaration
protected virtual DateTime DateCeiling(DateTime dateTime)
Parameters
System.
|
Returns
System.
|
DateFloor(DateTime)
Declaration
protected virtual DateTime DateFloor(DateTime dateTime)
Parameters
System.
|
Returns
System.
|
DrawAppointment(AppointmentPrintElement, Graphics, Rectangle)
Draws a AppointmentPrintElement.
Declaration
protected void DrawAppointment(AppointmentPrintElement element, Graphics graphics, Rectangle bounds)
Parameters
Appointment The element. |
System. The graphics used for drawing. |
System. The bounds of the element. |
DrawAppointment(AppointmentPrintElement, Graphics, RectangleF)
Draws a AppointmentPrintElement.
Declaration
protected void DrawAppointment(AppointmentPrintElement element, Graphics graphics, RectangleF bounds)
Parameters
Appointment The element. |
System. The graphics used for drawing. |
System. The bounds of the element. |
DrawAppointmentsArea(Rectangle, Graphics, Int32)
Draws the content area of the page.
Declaration
protected abstract void DrawAppointmentsArea(Rectangle appArea, Graphics graphics, int pageNumber)
Parameters
System. The bounds of the area. |
System. The graphics used for drawing. |
System. One-based number of the current page. |
DrawCell(SchedulerPrintCellElement, Graphics, Rectangle)
Draws a SchedulerPrintCellElement.
Declaration
protected void DrawCell(SchedulerPrintCellElement element, Graphics graphics, Rectangle bounds)
Parameters
Scheduler The element. |
System. The graphics used for drawing. |
System. The bounds of the element. |
DrawCell(SchedulerPrintCellElement, Graphics, RectangleF)
Draws a SchedulerPrintCellElement.
Declaration
protected void DrawCell(SchedulerPrintCellElement element, Graphics graphics, RectangleF bounds)
Parameters
Scheduler The element. |
System. The graphics used for drawing. |
System. The bounds of the element. |
DrawElement(RadPrintElement, Graphics, Rectangle)
Draws a RadPrintElement.
Declaration
protected void DrawElement(RadPrintElement element, Graphics graphics, Rectangle bounds)
Parameters
Rad The element. |
System. The graphics used for drawing. |
System. The bounds of the element. |
DrawElement(RadPrintElement, Graphics, RectangleF)
Draws a RadPrintElement.
Declaration
protected void DrawElement(RadPrintElement element, Graphics graphics, RectangleF bounds)
Parameters
Rad The element. |
System. The graphics used for drawing. |
System. The bounds of the element. |
DrawNotesArea(Graphics, Rectangle, Int32)
Draws an area for handwritten notes.
Declaration
protected virtual Rectangle DrawNotesArea(Graphics graphics, Rectangle drawingArea, int pageNumber)
Parameters
System. The graphics used for drawing. |
System. The area in which the notes should be drawn. |
System. 1-based consecutive number of the page to be drawn in. |
Returns
System. The bounds of the notes area. |
DrawPage(Graphics, Rectangle, Int32)
Draws the page inside a given graphics area.
Declaration
public virtual void DrawPage(Graphics graphics, Rectangle drawingArea, int pageNumber)
Parameters
System. The graphics used for drawing. |
System. The area in which the page should be drawn. |
System. One-based consecutive number of the page to be drawn. |
DrawTopArea(Rectangle, Graphics, Int32)
Draws the page heading.
Declaration
protected virtual Rectangle DrawTopArea(Rectangle drawingArea, Graphics graphics, int pageNumber)
Parameters
System. The area in which the heading should be drawn. |
System. The graphics used for drawing. |
System. The number of the page. |
Returns
System. 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
System. A list of appointments. |
GetAppointments(DateTime)
Gets the appointments of the current source that a given date contains.
Declaration
protected List<IEvent> GetAppointments(DateTime date)
Parameters
System. The date. |
Returns
System. A list of appointments. |
GetAppointments(DateTime, Boolean)
Gets the appointments of the current source that a given date contains.
Declaration
protected List<IEvent> GetAppointments(DateTime date, bool includeAllday)
Parameters
System. The date. |
System. Indicate whether all-day appointments should be included. |
Returns
System. A list of appointments. |
GetAppointments(DateTime, Boolean, IResource)
Declaration
protected List<IEvent> GetAppointments(DateTime date, bool includeAllday, IResource resource)
Parameters
System.
|
System.
|
IResource
resource
|
Returns
System.
|
GetAppointments(DateTime, DateTime)
Gets the appointments of the current source that are inside a specified time interval.
Declaration
protected List<IEvent> GetAppointments(DateTime startDate, DateTime endDate)
Parameters
System. The start date of the interval. |
System. The end date of the interval. |
Returns
System. A list of appointments. |
GetAppointments(DateTime, DateTime, IResource)
Declaration
protected List<IEvent> GetAppointments(DateTime startDate, DateTime endDate, IResource resource)
Parameters
System.
|
System.
|
IResource
resource
|
Returns
System.
|
GetAppointments(DateTime, DateTime, SchedulerPrintGroupType)
Declaration
protected List<IEvent> GetAppointments(DateTime startDate, DateTime endDate, SchedulerPrintGroupType sortType)
Parameters
System.
|
System.
|
Scheduler
|
Returns
System.
|
GetNumberOfPages(Rectangle, Graphics)
Returns the potential number of pages.
Declaration
public virtual int GetNumberOfPages(Rectangle pageBounds, Graphics g)
Parameters
System. The bounds of the page. |
System. The graphics object. Only used for measurement purposes. |
Returns
System.
|
GetPageDate(Int32)
Gets the date that corresponds to a given page.
Declaration
protected virtual DateTime GetPageDate(int pageNumber)
Parameters
System. The page number. |
Returns
System. The date. |
GetPageResource(Int32)
Gets the resource that corresponds to a given page.
Declaration
protected virtual IResource GetPageResource(int pageNumber)
Parameters
System. The page number. |
Returns
IResource
The resource. |
GetRoundedDateTime(DateTime, Boolean)
Gets a time rounded to the cells of the day view table.
Declaration
protected virtual DateTime GetRoundedDateTime(DateTime time, bool roundUp)
Parameters
System. The time to round. |
System. If true time will rounded up, otherwise it will be rounded down. |
Returns
System.
|
LoadImage(String)
Declaration
protected Image LoadImage(string name)
Parameters
System.
|
Returns
System.
|
OnAppointmentElementFormatting(PrintAppointmentEventArgs)
Declaration
protected virtual void OnAppointmentElementFormatting(PrintAppointmentEventArgs args)
Parameters
OnAppointmentElementPaint(PrintAppointmentPaintEventArgs)
Declaration
protected virtual void OnAppointmentElementPaint(PrintAppointmentPaintEventArgs args)
Parameters
OnCellElementFormatting(PrintSchedulerCellEventArgs)
Declaration
protected virtual void OnCellElementFormatting(PrintSchedulerCellEventArgs args)
Parameters
OnCellElementPaint(PrintSchedulerCellPaintEventArgs)
Declaration
protected virtual void OnCellElementPaint(PrintSchedulerCellPaintEventArgs args)
Parameters
OnPrintElementFormatting(PrintElementEventArgs)
Declaration
protected virtual void OnPrintElementFormatting(PrintElementEventArgs args)
Parameters
OnPrintElementPaint(PrintElementPaintEventArgs)
Declaration
protected virtual void OnPrintElementPaint(PrintElementPaintEventArgs args)
Parameters
Events
AppointmentElementFormatting
Fires when an appointment element is being formatted before it is painted.
Declaration
public event PrintAppointmentEventHandler AppointmentElementFormatting
Event Type
AppointmentElementPaint
Fires when an appointment element is painted.
Declaration
public event PrintAppointmentPaintEventHandler AppointmentElementPaint
Event Type
CellElementFormatting
Fires when a cell element is being formatted before it is painted.
Declaration
public event PrintSchedulerCellEventHandler CellElementFormatting
Event Type
CellElementPaint
Fires when a cell element is painted.
Declaration
public event PrintSchedulerCellPaintEventHandler CellElementPaint
Event Type
PrintElementFormatting
Fires when a print element is being formatted before it is painted.
Declaration
public event PrintElementEventHandler PrintElementFormatting
Event Type
PrintElementPaint
Fires when a print element is painted.
Declaration
public event PrintElementPaintEventHandler PrintElementPaint