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

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.Scheduler.dll

Syntax:

C#
public class SchedulerMonthlyPrintStyle : SchedulerPrintStyle, ICloneable

Inheritance: objectSchedulerPrintStyleSchedulerMonthlyPrintStyle

Implements: ICloneable

Inherited Members SchedulerPrintStyle.OnPrintElementFormatting(PrintElementEventArgs)SchedulerPrintStyle.OnCellElementFormatting(PrintSchedulerCellEventArgs)SchedulerPrintStyle.OnAppointmentElementFormatting(PrintAppointmentEventArgs)SchedulerPrintStyle.OnPrintElementPaint(PrintElementPaintEventArgs)SchedulerPrintStyle.OnCellElementPaint(PrintSchedulerCellPaintEventArgs)SchedulerPrintStyle.OnAppointmentElementPaint(PrintAppointmentPaintEventArgs)SchedulerPrintStyle.DrawPage(Graphics, Rectangle, int)SchedulerPrintStyle.DrawTopArea(Rectangle, Graphics, int)SchedulerPrintStyle.DrawElement(RadPrintElement, Graphics, Rectangle)SchedulerPrintStyle.DrawElement(RadPrintElement, Graphics, RectangleF)SchedulerPrintStyle.DrawAppointment(AppointmentPrintElement, Graphics, Rectangle)SchedulerPrintStyle.DrawAppointment(AppointmentPrintElement, Graphics, RectangleF)SchedulerPrintStyle.DrawCell(SchedulerPrintCellElement, Graphics, Rectangle)SchedulerPrintStyle.DrawCell(SchedulerPrintCellElement, Graphics, RectangleF)SchedulerPrintStyle.GetAppointments()SchedulerPrintStyle.GetAppointments(DateTime)SchedulerPrintStyle.GetAppointments(DateTime, bool)SchedulerPrintStyle.GetAppointments(DateTime, bool, IResource)SchedulerPrintStyle.GetAppointments(DateTime, DateTime)SchedulerPrintStyle.GetAppointments(DateTime, DateTime, IResource)SchedulerPrintStyle.GetAppointments(DateTime, DateTime, SchedulerPrintGroupType)SchedulerPrintStyle.CompareAppointments(IEvent, IEvent)SchedulerPrintStyle.CompareAppointmentsByResource(IEvent, IEvent)SchedulerPrintStyle.LoadImage(string)SchedulerPrintStyle.DateCeiling(DateTime)SchedulerPrintStyle.DateFloor(DateTime)SchedulerPrintStyle.GetRoundedDateTime(DateTime, bool)SchedulerPrintStyle.Clone()SchedulerPrintStyle.EndPrint()SchedulerPrintStyle.GroupTypeSchedulerPrintStyle.ShowTimezoneSchedulerPrintStyle.HeadingAreaHeightSchedulerPrintStyle.NotesAreaWidthSchedulerPrintStyle.DrawPageTitleSchedulerPrintStyle.DrawPageTitleCalendarSchedulerPrintStyle.ShowNotesAreaSchedulerPrintStyle.ShowLinedNotesAreaSchedulerPrintStyle.DateHeadingFontSchedulerPrintStyle.AppointmentFontSchedulerPrintStyle.PageHeadingFontSchedulerPrintStyle.TotalDaysSchedulerPrintStyle.TimeStartRangeSchedulerPrintStyle.TimeEndRangeSchedulerPrintStyle.SchedulerSchedulerPrintStyle.IsGroupedSchedulerPrintStyle.PrintElementFormattingSchedulerPrintStyle.CellElementFormattingSchedulerPrintStyle.AppointmentElementFormattingSchedulerPrintStyle.PrintElementPaintSchedulerPrintStyle.CellElementPaintSchedulerPrintStyle.AppointmentElementPaint...

Constructors

Creates a new instance of the class.

C#
public SchedulerMonthlyPrintStyle()

Creates a new instance of the class.

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

C#
[Browsable(false)]
public int AppointmentHeight { get; set; }

Gets or sets the height of the header of each cell.

C#
[Browsable(false)]
public int CellHeaderHeight { get; set; }

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

C#
public override DateTime DateEndRange { get; set; }

Overrides: SchedulerPrintStyle.DateEndRange

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

C#
public override DateTime DateStartRange { get; set; }

Overrides: SchedulerPrintStyle.DateStartRange

Gets or sets a value indicating whether the nonworking days should be printed.

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

Gets or sets the image that is printed at the bottom of a cell when there are more appointments than can be shown.

C#
public Image OverflowImage { get; set; }

Gets or sets whether each month should be printed on a single separate page.

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

Gets or sets whether a single month should be printed on two pages.

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

Gets or sets the width of the vertical header which displays the week ranges.

C#
[Browsable(false)]
public int VerticalHeaderWidth { get; set; }

Gets or sets the number of weeks that should be printed on each page when PrintExactlyOneMonth is false.

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

Methods

C#
public override void CopyProperties(SchedulerPrintStyle destination)
Parameters:destinationSchedulerPrintStyle

Overrides: SchedulerPrintStyle.CopyProperties(SchedulerPrintStyle)

Draws the content area of the page.

C#
protected override 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.

Overrides: SchedulerPrintStyle.DrawAppointmentsArea(Rectangle, Graphics, int)

Draws an area for handwritten notes.

C#
protected override 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.

Overrides: SchedulerPrintStyle.DrawNotesArea(Graphics, Rectangle, int)

Returns the potential number of pages.

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

The bounds of the page.

gGraphics

The graphics object. Only used for measurement purposes.

Returns:

int

Overrides: SchedulerPrintStyle.GetNumberOfPages(Rectangle, Graphics)

Gets the date that corresponds to a given page.

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

The page number.

Returns:

DateTime

The date.

Overrides: SchedulerPrintStyle.GetPageDate(int)

Gets the resource that corresponds to a given page.

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

The page number.

Returns:

IResource

The resource.

Overrides: SchedulerPrintStyle.GetPageResource(int)