New to Telerik UI for WinForms? Start a free 30-day trial

Renders an appointment's summary, optional time range, location, background, and status stripe for scheduler printing.

Definition

Constructors

Creates an unbound appointment print element that can be configured through its properties.

C#
public AppointmentPrintElement()

Creates a print element for the specified appointment and scheduler data.

C#
public AppointmentPrintElement(IEvent appointment, ISchedulerData data)
Parameters:appointmentIEvent

The appointment to render, or null to create an unbound element.

dataISchedulerData

The scheduler data used to resolve appointment background and status information.

Properties

Gets or sets the appointment which this element represents.

C#
public IEvent Appointment { get; set; }

Gets the end date of the appointment according to the selected timezone.

C#
public DateTime End { get; }

Gets or sets whether appointment's start and end hours should be displayed. Should be set after the print element has been associated with an appointment.

C#
public bool ShowHours { get; set; }

Gets the start date of the appointment according to the selected timezone.

C#
public DateTime Start { get; }

Gets or sets the width of the status idicator.

C#
public int StatusAreaWidth { get; set; }

Gets or sets the displayed text. When no custom text is set, the value is composed from the appointment's optional time range, summary, and location.

C#
public override string Text { get; set; }

Overrides: RadPrintElement.Text

Gets or sets the format in which the times will be shown when ShowHours is true.

C#
public string TimeFormat { get; set; }

Methods

Paints the appointment background and status stripe when scheduler data and an appointment are assigned.

C#
protected override void PaintFill(Graphics g, Rectangle rect)
Parameters:gGraphics

The graphics surface used to draw the element.

rectRectangle

The element bounds.

Overrides: RadPrintElement.PaintFill(Graphics, Rectangle)

Paints the appointment background and status stripe when scheduler data and an appointment are assigned.

C#
protected override void PaintFill(Graphics g, RectangleF rect)
Parameters:gGraphics

The graphics surface used to draw the element.

rectRectangleF

The element bounds.

Overrides: RadPrintElement.PaintFill(Graphics, RectangleF)

Reserves the status-stripe width on the left before painting appointment text.

C#
protected override void PaintText(Graphics g, Rectangle rect)
Parameters:gGraphics

The graphics surface used to draw the text.

rectRectangle

The text bounds.

Overrides: RadPrintElement.PaintText(Graphics, Rectangle)

Reserves the status-stripe width on the left before painting appointment text.

C#
protected override void PaintText(Graphics g, RectangleF rect)
Parameters:gGraphics

The graphics surface used to draw the text.

rectRectangleF

The text bounds.

Overrides: RadPrintElement.PaintText(Graphics, RectangleF)