Prints a weekly calendar as day columns with a time ruler and an optional all-day appointment area.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.Scheduler.dll
Syntax:
public class SchedulerWeeklyCalendarPrintStyle : SchedulerBaseWeeklyPrintStyle, ICloneable
Inheritance: objectSchedulerPrintStyleSchedulerBaseWeeklyPrintStyleSchedulerWeeklyCalendarPrintStyle
Implements:
Inherited Members
Constructors
Creates a new instance of the class.
public SchedulerWeeklyCalendarPrintStyle()
Properties
Gets or sets the height of the appointments in the AllDay area.
[Browsable(false)]
public int AllDayAppointmentHeight { get; set; }
Gets or sets the height of the header area.
[Browsable(false)]
public int HeaderAreaHeight { get; set; }
Gets or sets thefont of the header area cells.
[Browsable(false)]
public Font HeaderCellFont { get; set; }
Gets or sets the width of the hours column.
[Browsable(false)]
public float HoursColumnWidth { get; set; }
Gets or sets the maximum height that the AllDay area can occupy.
[Browsable(false)]
public int MaxAllDayAreaHeight { get; set; }
Methods
Copies the base print settings and weekly calendar options to another weekly calendar style.
public override void CopyProperties(SchedulerPrintStyle destination)
The style that receives the settings.
Overrides:
Draws all-day and multi-day appointments across their date columns, stacking overlapping spans within the configured height.
protected virtual float DrawAllDayArea(DateTime currentDate, IResource resource, RectangleF appArea, Graphics graphics, int pageNumber)
The first date represented by the page.
resourceIResourceThe resource represented by the page, or null when ungrouped.
appAreaRectangleFThe bounds available for the all-day area.
graphicsGraphicsThe graphics context used to draw the appointments.
pageNumberintThe one-based page number.
Returns:The height consumed by the visible all-day rows.
Draws timed appointments for one date, placing overlapping appointments in separate columns.
protected virtual void DrawAppointments(DateTime currentDate, IResource resource, RectangleF appArea, Graphics graphics)
The date represented by the column.
resourceIResourceThe resource represented by the page, or null when ungrouped.
appAreaRectangleFThe bounds available for timed appointments.
graphicsGraphicsThe graphics context used to draw the appointments.
Draws the day headers, all-day rows, time grid, and timed appointments for the page's portion of the week.
Draws hourly time-ruler cells and the day-by-day appointment grid for the page.
protected virtual void DrawCells(RectangleF appArea, Graphics graphics, int pageNumber)
The bounds available for the time grid.
graphicsGraphicsThe graphics context used to draw the cells.
pageNumberintThe one-based page number.
Draws the date headings for the page's day columns and the blank cell above the time ruler.
protected virtual void DrawHeaderCells(RectangleF appArea, Graphics graphics, DateTime currentDate, int pageNumber)
The bounds available for the header row.
graphicsGraphicsThe graphics context used to draw the cells.
currentDateDateTimeThe first date represented by the page.
pageNumberintThe one-based page number.
Draws notes on the second page of a split week; for an unsplit week, uses the base notes layout.
protected override Rectangle DrawNotesArea(Graphics graphics, Rectangle drawingArea, int pageNumber)
The graphics context used to draw the notes.
drawingAreaRectangleThe area available for page content.
pageNumberintThe one-based page number.
Returns:The notes bounds, or an empty rectangle when this page has no notes area.
Overrides: