Class
SchedulerPrintStyle

Represents a base class for different print styles of RadScheduler.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.Scheduler.dll

Syntax:

cs-api-definition
public abstract class SchedulerPrintStyle : ICloneable

Inheritance: objectSchedulerPrintStyle

Derived Classes: SchedulerBaseWeeklyPrintStyleSchedulerDailyPrintStyleSchedulerDetailsPrintStyleSchedulerMonthlyPrintStyle

Implements: ICloneable

Constructors

SchedulerPrintStyle()

Creates a new instance of the class.

Declaration

cs-api-definition
public SchedulerPrintStyle()

SchedulerPrintStyle(DateTime, DateTime)

Creates a new instance of the class.

Declaration

cs-api-definition
public SchedulerPrintStyle(DateTime startRange, DateTime endRange)

Parameters

startRange

DateTime

The start date of the printing range.

endRange

DateTime

The end date of the printing range.

Properties

AppointmentFont

Gets or sets the font of the appointments.

Declaration

cs-api-definition
[Browsable(true)]
public Font AppointmentFont { get; set; }

Property Value

Font

DateEndRange

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

Declaration

cs-api-definition
[Browsable(true)]
public virtual DateTime DateEndRange { get; set; }

Property Value

DateTime

DateHeadingFont

Gets or sets the font of the date headers.

Declaration

cs-api-definition
[Browsable(true)]
public Font DateHeadingFont { get; set; }

Property Value

Font

DateStartRange

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

Declaration

cs-api-definition
[Browsable(true)]
public virtual DateTime DateStartRange { get; set; }

Property Value

DateTime

DrawPageTitle

Gets or sets whether a page title should be printed.

Declaration

cs-api-definition
[Browsable(true)]
public bool DrawPageTitle { get; set; }

Property Value

bool

DrawPageTitleCalendar

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

Declaration

cs-api-definition
[Browsable(true)]
public bool DrawPageTitleCalendar { get; set; }

Property Value

bool

GroupType

Gets or sets the groping mode of the printed document.

Declaration

cs-api-definition
[Browsable(true)]
public SchedulerPrintGroupType GroupType { get; set; }

Property Value

SchedulerPrintGroupType

HeadingAreaHeight

Gets or sets the height of the heading area.

Declaration

cs-api-definition
[Browsable(false)]
public int HeadingAreaHeight { get; set; }

Property Value

int

IsGrouped

Declaration

cs-api-definition
protected bool IsGrouped { get; }

Property Value

bool

NotesAreaWidth

Gets or sets the width of the notes area.

Declaration

cs-api-definition
[Browsable(true)]
public int NotesAreaWidth { get; set; }

Property Value

int

PageHeadingFont

Gets or sets the font of the page heading.

Declaration

cs-api-definition
[Browsable(true)]
public Font PageHeadingFont { get; set; }

Property Value

Font

Scheduler

Gets the RadScheduler that is being printed.

Declaration

cs-api-definition
[Browsable(false)]
public RadScheduler Scheduler { get; }

Property Value

RadScheduler

ShowLinedNotesArea

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

Declaration

cs-api-definition
[Browsable(true)]
public bool ShowLinedNotesArea { get; set; }

Property Value

bool

ShowNotesArea

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

Declaration

cs-api-definition
[Browsable(true)]
public bool ShowNotesArea { get; set; }

Property Value

bool

ShowTimezone

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

Declaration

cs-api-definition
[Browsable(true)]
public bool ShowTimezone { get; set; }

Property Value

bool

TimeEndRange

Gets or sets the end time of the time interval which describes which appointments should be printer for every single date.

Declaration

cs-api-definition
[Browsable(true)]
public virtual TimeSpan TimeEndRange { get; set; }

Property Value

TimeSpan

TimeStartRange

Gets or sets the start time of the time interval which describes which appointments should be printer for every single date.

Declaration

cs-api-definition
[Browsable(true)]
public virtual TimeSpan TimeStartRange { get; set; }

Property Value

TimeSpan

TotalDays

Declaration

cs-api-definition
protected int TotalDays { get; }

Property Value

int

Methods

Clone()

Declaration

cs-api-definition
public object Clone()

Returns

object

Implements ICloneable.Clone()

CompareAppointments(IEvent, IEvent)

Declaration

cs-api-definition
protected int CompareAppointments(IEvent x, IEvent y)

Parameters

x

IEvent

y

IEvent

Returns

int

CompareAppointmentsByResource(IEvent, IEvent)

Declaration

cs-api-definition
protected int CompareAppointmentsByResource(IEvent x, IEvent y)

Parameters

x

IEvent

y

IEvent

Returns

int

CopyProperties(SchedulerPrintStyle)

Declaration

cs-api-definition
public virtual void CopyProperties(SchedulerPrintStyle destination)

Parameters

destination

SchedulerPrintStyle

DateCeiling(DateTime)

Declaration

cs-api-definition
protected virtual DateTime DateCeiling(DateTime dateTime)

Parameters

dateTime

DateTime

Returns

DateTime

DateFloor(DateTime)

Declaration

cs-api-definition
protected virtual DateTime DateFloor(DateTime dateTime)

Parameters

dateTime

DateTime

Returns

DateTime

DrawAppointment(AppointmentPrintElement, Graphics, Rectangle)

Draws a AppointmentPrintElement.

Declaration

cs-api-definition
protected void DrawAppointment(AppointmentPrintElement element, Graphics graphics, Rectangle bounds)

Parameters

element

AppointmentPrintElement

The element.

graphics

Graphics

The graphics used for drawing.

bounds

Rectangle

The bounds of the element.

DrawAppointment(AppointmentPrintElement, Graphics, RectangleF)

Draws a AppointmentPrintElement.

Declaration

cs-api-definition
protected void DrawAppointment(AppointmentPrintElement element, Graphics graphics, RectangleF bounds)

Parameters

element

AppointmentPrintElement

The element.

graphics

Graphics

The graphics used for drawing.

bounds

RectangleF

The bounds of the element.

DrawAppointmentsArea(Rectangle, Graphics, int)

Draws the content area of the page.

Declaration

cs-api-definition
protected abstract void DrawAppointmentsArea(Rectangle appArea, Graphics graphics, int pageNumber)

Parameters

appArea

Rectangle

The bounds of the area.

graphics

Graphics

The graphics used for drawing.

pageNumber

int

One-based number of the current page.

DrawCell(SchedulerPrintCellElement, Graphics, Rectangle)

Draws a SchedulerPrintCellElement.

Declaration

cs-api-definition
protected void DrawCell(SchedulerPrintCellElement element, Graphics graphics, Rectangle bounds)

Parameters

element

SchedulerPrintCellElement

The element.

graphics

Graphics

The graphics used for drawing.

bounds

Rectangle

The bounds of the element.

DrawCell(SchedulerPrintCellElement, Graphics, RectangleF)

Draws a SchedulerPrintCellElement.

Declaration

cs-api-definition
protected void DrawCell(SchedulerPrintCellElement element, Graphics graphics, RectangleF bounds)

Parameters

element

SchedulerPrintCellElement

The element.

graphics

Graphics

The graphics used for drawing.

bounds

RectangleF

The bounds of the element.

DrawElement(RadPrintElement, Graphics, Rectangle)

Draws a RadPrintElement.

Declaration

cs-api-definition
protected void DrawElement(RadPrintElement element, Graphics graphics, Rectangle bounds)

Parameters

element

RadPrintElement

The element.

graphics

Graphics

The graphics used for drawing.

bounds

Rectangle

The bounds of the element.

DrawElement(RadPrintElement, Graphics, RectangleF)

Draws a RadPrintElement.

Declaration

cs-api-definition
protected void DrawElement(RadPrintElement element, Graphics graphics, RectangleF bounds)

Parameters

element

RadPrintElement

The element.

graphics

Graphics

The graphics used for drawing.

bounds

RectangleF

The bounds of the element.

DrawNotesArea(Graphics, Rectangle, int)

Draws an area for handwritten notes.

Declaration

cs-api-definition
protected virtual Rectangle DrawNotesArea(Graphics graphics, Rectangle drawingArea, int pageNumber)

Parameters

graphics

Graphics

The graphics used for drawing.

drawingArea

Rectangle

The area in which the notes should be drawn.

pageNumber

int

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

Returns

Rectangle

The bounds of the notes area.

DrawPage(Graphics, Rectangle, int)

Draws the page inside a given graphics area.

Declaration

cs-api-definition
public virtual void DrawPage(Graphics graphics, Rectangle drawingArea, int pageNumber)

Parameters

graphics

Graphics

The graphics used for drawing.

drawingArea

Rectangle

The area in which the page should be drawn.

pageNumber

int

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

DrawTopArea(Rectangle, Graphics, int)

Draws the page heading.

Declaration

cs-api-definition
protected virtual Rectangle DrawTopArea(Rectangle drawingArea, Graphics graphics, int pageNumber)

Parameters

drawingArea

Rectangle

The area in which the heading should be drawn.

graphics

Graphics

The graphics used for drawing.

pageNumber

int

The number of the page.

Returns

Rectangle

The bounds of the top area.

EndPrint()

Declaration

cs-api-definition
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

cs-api-definition
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.

Declaration

cs-api-definition
protected List<IEvent> GetAppointments(DateTime date)

Parameters

date

DateTime

The date.

Returns

List<IEvent>

A list of appointments.

GetAppointments(DateTime, DateTime)

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

Declaration

cs-api-definition
protected List<IEvent> GetAppointments(DateTime startDate, DateTime endDate)

Parameters

startDate

DateTime

The start date of the interval.

endDate

DateTime

The end date of the interval.

Returns

List<IEvent>

A list of appointments.

GetAppointments(DateTime, DateTime, IResource)

Declaration

cs-api-definition
protected List<IEvent> GetAppointments(DateTime startDate, DateTime endDate, IResource resource)

Parameters

startDate

DateTime

endDate

DateTime

resource

IResource

Returns

List<IEvent>

GetAppointments(DateTime, DateTime, SchedulerPrintGroupType)

Declaration

cs-api-definition
protected List<IEvent> GetAppointments(DateTime startDate, DateTime endDate, SchedulerPrintGroupType sortType)

Parameters

startDate

DateTime

endDate

DateTime

sortType

SchedulerPrintGroupType

Returns

List<IEvent>

GetAppointments(DateTime, bool)

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

Declaration

cs-api-definition
protected List<IEvent> GetAppointments(DateTime date, bool includeAllday)

Parameters

date

DateTime

The date.

includeAllday

bool

Indicate whether all-day appointments should be included.

Returns

List<IEvent>

A list of appointments.

GetAppointments(DateTime, bool, IResource)

Declaration

cs-api-definition
protected List<IEvent> GetAppointments(DateTime date, bool includeAllday, IResource resource)

Parameters

date

DateTime

includeAllday

bool

resource

IResource

Returns

List<IEvent>

GetNumberOfPages(Rectangle, Graphics)

Returns the potential number of pages.

Declaration

cs-api-definition
public virtual int GetNumberOfPages(Rectangle pageBounds, Graphics g)

Parameters

pageBounds

Rectangle

The bounds of the page.

g

Graphics

The graphics object. Only used for measurement purposes.

Returns

int

GetPageDate(int)

Gets the date that corresponds to a given page.

Declaration

cs-api-definition
protected virtual DateTime GetPageDate(int pageNumber)

Parameters

pageNumber

int

The page number.

Returns

DateTime

The date.

GetPageResource(int)

Gets the resource that corresponds to a given page.

Declaration

cs-api-definition
protected virtual IResource GetPageResource(int pageNumber)

Parameters

pageNumber

int

The page number.

Returns

IResource

The resource.

GetRoundedDateTime(DateTime, bool)

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

Declaration

cs-api-definition
protected virtual DateTime GetRoundedDateTime(DateTime time, bool roundUp)

Parameters

time

DateTime

The time to round.

roundUp

bool

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

Returns

DateTime

LoadImage(string)

Declaration

cs-api-definition
protected Image LoadImage(string name)

Parameters

name

string

Returns

Image

OnAppointmentElementFormatting(PrintAppointmentEventArgs)

Declaration

cs-api-definition
protected virtual void OnAppointmentElementFormatting(PrintAppointmentEventArgs args)

Parameters

args

PrintAppointmentEventArgs

OnAppointmentElementPaint(PrintAppointmentPaintEventArgs)

Declaration

cs-api-definition
protected virtual void OnAppointmentElementPaint(PrintAppointmentPaintEventArgs args)

Parameters

args

PrintAppointmentPaintEventArgs

OnCellElementFormatting(PrintSchedulerCellEventArgs)

Declaration

cs-api-definition
protected virtual void OnCellElementFormatting(PrintSchedulerCellEventArgs args)

Parameters

args

PrintSchedulerCellEventArgs

OnCellElementPaint(PrintSchedulerCellPaintEventArgs)

Declaration

cs-api-definition
protected virtual void OnCellElementPaint(PrintSchedulerCellPaintEventArgs args)

Parameters

args

PrintSchedulerCellPaintEventArgs

OnPrintElementFormatting(PrintElementEventArgs)

Declaration

cs-api-definition
protected virtual void OnPrintElementFormatting(PrintElementEventArgs args)

Parameters

args

PrintElementEventArgs

OnPrintElementPaint(PrintElementPaintEventArgs)

Declaration

cs-api-definition
protected virtual void OnPrintElementPaint(PrintElementPaintEventArgs args)

Parameters

args

PrintElementPaintEventArgs

Events

AppointmentElementFormatting

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

Declaration

cs-api-definition
public event PrintAppointmentEventHandler AppointmentElementFormatting

Event Value

PrintAppointmentEventHandler

AppointmentElementPaint

Fires when an appointment element is painted.

Declaration

cs-api-definition
public event PrintAppointmentPaintEventHandler AppointmentElementPaint

Event Value

PrintAppointmentPaintEventHandler

CellElementFormatting

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

Declaration

cs-api-definition
public event PrintSchedulerCellEventHandler CellElementFormatting

Event Value

PrintSchedulerCellEventHandler

CellElementPaint

Fires when a cell element is painted.

Declaration

cs-api-definition
public event PrintSchedulerCellPaintEventHandler CellElementPaint

Event Value

PrintSchedulerCellPaintEventHandler

PrintElementFormatting

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

Declaration

cs-api-definition
public event PrintElementEventHandler PrintElementFormatting

Event Value

PrintElementEventHandler

PrintElementPaint

Fires when a print element is painted.

Declaration

cs-api-definition
public event PrintElementPaintEventHandler PrintElementPaint

Event Value

PrintElementPaintEventHandler

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)GetAppointments(DateTime, DateTime)GetAppointments(DateTime, DateTime, IResource)GetAppointments(DateTime, DateTime, SchedulerPrintGroupType)GetAppointments(DateTime, bool)GetAppointments(DateTime, bool, IResource)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