New to Telerik UI for WinFormsStart a free 30-day trial

Represents a base class for different print styles of RadScheduler.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.Scheduler.dll

Syntax:

C#
public abstract class SchedulerPrintStyle : ICloneable

Inheritance: objectSchedulerPrintStyle

Derived Classes: SchedulerBaseWeeklyPrintStyleSchedulerDailyPrintStyleSchedulerDetailsPrintStyleSchedulerMonthlyPrintStyle

Implements: ICloneable

Constructors

Creates a new instance of the class.

C#
public SchedulerPrintStyle()

Creates a new instance of the class.

C#
public SchedulerPrintStyle(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 font of the appointments.

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

Gets or sets the end date of the date range which describes which appointments should be printed.

C#
[Browsable(true)]
public virtual DateTime DateEndRange { get; set; }

Gets or sets the font of the date headers.

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

Gets or sets the start date of the date range which describes which appointments should be printed.

C#
[Browsable(true)]
public virtual DateTime DateStartRange { get; set; }

Gets or sets whether a page title should be printed.

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

Gets or sets whether a calendar should be printed inside the title area.

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

Gets or sets the groping mode of the printed document.

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

Gets or sets the height of the heading area.

C#
[Browsable(false)]
public int HeadingAreaHeight { get; set; }
C#
protected bool IsGrouped { get; }

Gets or sets the width of the notes area.

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

Gets or sets the font of the page heading.

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

Gets the RadScheduler that is being printed.

C#
[Browsable(false)]
public RadScheduler Scheduler { get; }

Gets or sets whether a lined area for handwritten notes should be printed.

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

Gets or sets whether an area for handwritten notes should be printed.

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

Gets or sets a value indicating whether the current timezone should be printed inside page title area.

C#
[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.

C#
[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.

C#
[Browsable(true)]
public virtual TimeSpan TimeStartRange { get; set; }
C#
protected int TotalDays { get; }

Methods

C#
public object Clone()
Returns:

object

Implements: ICloneable.Clone()

C#
protected int CompareAppointments(IEvent x, IEvent y)
Parameters:xIEventyIEventReturns:

int

C#
protected int CompareAppointmentsByResource(IEvent x, IEvent y)
Parameters:xIEventyIEventReturns:

int

C#
public virtual void CopyProperties(SchedulerPrintStyle destination)
Parameters:destinationSchedulerPrintStyle
C#
protected virtual DateTime DateCeiling(DateTime dateTime)
Parameters:dateTimeDateTimeReturns:

DateTime

C#
protected virtual DateTime DateFloor(DateTime dateTime)
Parameters:dateTimeDateTimeReturns:

DateTime

Draws a AppointmentPrintElement.

C#
protected void DrawAppointment(AppointmentPrintElement element, Graphics graphics, Rectangle bounds)
Parameters:elementAppointmentPrintElement

The element.

graphicsGraphics

The graphics used for drawing.

boundsRectangle

The bounds of the element.

Draws a AppointmentPrintElement.

C#
protected void DrawAppointment(AppointmentPrintElement element, Graphics graphics, RectangleF bounds)
Parameters:elementAppointmentPrintElement

The element.

graphicsGraphics

The graphics used for drawing.

boundsRectangleF

The bounds of the element.

Draws the content area of the page.

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

The bounds of the area.

graphicsGraphics

The graphics used for drawing.

pageNumberint

One-based number of the current page.

Draws a SchedulerPrintCellElement.

C#
protected void DrawCell(SchedulerPrintCellElement element, Graphics graphics, Rectangle bounds)
Parameters:elementSchedulerPrintCellElement

The element.

graphicsGraphics

The graphics used for drawing.

boundsRectangle

The bounds of the element.

Draws a SchedulerPrintCellElement.

C#
protected void DrawCell(SchedulerPrintCellElement element, Graphics graphics, RectangleF bounds)
Parameters:elementSchedulerPrintCellElement

The element.

graphicsGraphics

The graphics used for drawing.

boundsRectangleF

The bounds of the element.

Draws a RadPrintElement.

C#
protected void DrawElement(RadPrintElement element, Graphics graphics, Rectangle bounds)
Parameters:elementRadPrintElement

The element.

graphicsGraphics

The graphics used for drawing.

boundsRectangle

The bounds of the element.

Draws a RadPrintElement.

C#
protected void DrawElement(RadPrintElement element, Graphics graphics, RectangleF bounds)
Parameters:elementRadPrintElement

The element.

graphicsGraphics

The graphics used for drawing.

boundsRectangleF

The bounds of the element.

Draws an area for handwritten notes.

C#
protected virtual Rectangle DrawNotesArea(Graphics graphics, Rectangle drawingArea, int pageNumber)
Parameters:graphicsGraphics

The graphics used for drawing.

drawingAreaRectangle

The area in which the notes should be drawn.

pageNumberint

1-based consecutive number of the page to be drawn in.

Returns:

Rectangle

The bounds of the notes area.

Draws the page inside a given graphics area.

C#
public virtual void DrawPage(Graphics graphics, Rectangle drawingArea, int pageNumber)
Parameters:graphicsGraphics

The graphics used for drawing.

drawingAreaRectangle

The area in which the page should be drawn.

pageNumberint

One-based consecutive number of the page to be drawn.

Draws the page heading.

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

The area in which the heading should be drawn.

graphicsGraphics

The graphics used for drawing.

pageNumberint

The number of the page.

Returns:

Rectangle

The bounds of the top area.

C#
public virtual void EndPrint()

Gets the appointments of the current source that are inside the time interval specified by the DateStartRange and DateEndRange properties.

C#
protected List<IEvent> GetAppointments()
Returns:

List<IEvent>

A list of appointments.

C#
protected List<IEvent> GetAppointments(DateTime date, bool includeAllday, IResource resource)
Parameters:dateDateTimeincludeAlldayboolresourceIResourceReturns:

List<IEvent>

Gets the appointments of the current source that a given date contains.

C#
protected List<IEvent> GetAppointments(DateTime date, bool includeAllday)
Parameters:dateDateTime

The date.

includeAlldaybool

Indicate whether all-day appointments should be included.

Returns:

List<IEvent>

A list of appointments.

C#
protected List<IEvent> GetAppointments(DateTime startDate, DateTime endDate, IResource resource)
Parameters:startDateDateTimeendDateDateTimeresourceIResourceReturns:

List<IEvent>

C#
protected List<IEvent> GetAppointments(DateTime startDate, DateTime endDate, SchedulerPrintGroupType sortType)
Parameters:startDateDateTimeendDateDateTimesortTypeSchedulerPrintGroupTypeReturns:

List<IEvent>

Gets the appointments of the current source that are inside a specified time interval.

C#
protected List<IEvent> GetAppointments(DateTime startDate, DateTime endDate)
Parameters:startDateDateTime

The start date of the interval.

endDateDateTime

The end date of the interval.

Returns:

List<IEvent>

A list of appointments.

Gets the appointments of the current source that a given date contains.

C#
protected List<IEvent> GetAppointments(DateTime date)
Parameters:dateDateTime

The date.

Returns:

List<IEvent>

A list of appointments.

Returns the potential number of pages.

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

The bounds of the page.

gGraphics

The graphics object. Only used for measurement purposes.

Returns:

int

Gets the date that corresponds to a given page.

C#
protected virtual DateTime GetPageDate(int pageNumber)
Parameters:pageNumberint

The page number.

Returns:

DateTime

The date.

Gets the resource that corresponds to a given page.

C#
protected virtual IResource GetPageResource(int pageNumber)
Parameters:pageNumberint

The page number.

Returns:

IResource

The resource.

Gets a time rounded to the cells of the day view table.

C#
protected virtual DateTime GetRoundedDateTime(DateTime time, bool roundUp)
Parameters:timeDateTime

The time to round.

roundUpbool

If true time will rounded up, otherwise it will be rounded down.

Returns:

DateTime

C#
protected Image LoadImage(string name)
Parameters:namestringReturns:

Image

C#
protected virtual void OnAppointmentElementFormatting(PrintAppointmentEventArgs args)
Parameters:argsPrintAppointmentEventArgs
C#
protected virtual void OnAppointmentElementPaint(PrintAppointmentPaintEventArgs args)
Parameters:argsPrintAppointmentPaintEventArgs
C#
protected virtual void OnCellElementFormatting(PrintSchedulerCellEventArgs args)
Parameters:argsPrintSchedulerCellEventArgs
C#
protected virtual void OnCellElementPaint(PrintSchedulerCellPaintEventArgs args)
Parameters:argsPrintSchedulerCellPaintEventArgs
C#
protected virtual void OnPrintElementFormatting(PrintElementEventArgs args)
Parameters:argsPrintElementEventArgs
C#
protected virtual void OnPrintElementPaint(PrintElementPaintEventArgs args)
Parameters:argsPrintElementPaintEventArgs

Events

Fires when an appointment element is being formatted before it is painted.

C#
public event PrintAppointmentEventHandler AppointmentElementFormatting

Fires when an appointment element is painted.

C#
public event PrintAppointmentPaintEventHandler AppointmentElementPaint

Fires when a cell element is being formatted before it is painted.

C#
public event PrintSchedulerCellEventHandler CellElementFormatting

Fires when a cell element is painted.

C#
public event PrintSchedulerCellPaintEventHandler CellElementPaint

Fires when a print element is being formatted before it is painted.

C#
public event PrintElementEventHandler PrintElementFormatting

Fires when a print element is painted.

C#
public event PrintElementPaintEventHandler PrintElementPaint
In this article
DefinitionConstructorsSchedulerPrintStyle()SchedulerPrintStyle(DateTime, DateTime)PropertiesAppointmentFontDateEndRangeDateHeadingFontDateStartRangeDrawPageTitleDrawPageTitleCalendarGroupTypeHeadingAreaHeightIsGroupedNotesAreaWidthPageHeadingFontSchedulerShowLinedNotesAreaShowNotesAreaShowTimezoneTimeEndRangeTimeStartRangeTotalDaysMethodsClone()CompareAppointments(IEvent, IEvent)CompareAppointmentsByResource(IEvent, IEvent)CopyProperties(SchedulerPrintStyle)DateCeiling(DateTime)DateFloor(DateTime)DrawAppointment(AppointmentPrintElement, Graphics, Rectangle)DrawAppointment(AppointmentPrintElement, Graphics, RectangleF)DrawAppointmentsArea(Rectangle, Graphics, int)DrawCell(SchedulerPrintCellElement, Graphics, Rectangle)DrawCell(SchedulerPrintCellElement, Graphics, RectangleF)DrawElement(RadPrintElement, Graphics, Rectangle)DrawElement(RadPrintElement, Graphics, RectangleF)DrawNotesArea(Graphics, Rectangle, int)DrawPage(Graphics, Rectangle, int)DrawTopArea(Rectangle, Graphics, int)EndPrint()GetAppointments()GetAppointments(DateTime, bool, IResource)GetAppointments(DateTime, bool)GetAppointments(DateTime, DateTime, IResource)GetAppointments(DateTime, DateTime, SchedulerPrintGroupType)GetAppointments(DateTime, DateTime)GetAppointments(DateTime)GetNumberOfPages(Rectangle, Graphics)GetPageDate(int)GetPageResource(int)GetRoundedDateTime(DateTime, bool)LoadImage(string)OnAppointmentElementFormatting(PrintAppointmentEventArgs)OnAppointmentElementPaint(PrintAppointmentPaintEventArgs)OnCellElementFormatting(PrintSchedulerCellEventArgs)OnCellElementPaint(PrintSchedulerCellPaintEventArgs)OnPrintElementFormatting(PrintElementEventArgs)OnPrintElementPaint(PrintElementPaintEventArgs)EventsAppointmentElementFormattingAppointmentElementPaintCellElementFormattingCellElementPaintPrintElementFormattingPrintElementPaint
Not finding the help you need?
Contact Support