Renders an appointment's summary, optional time range, location, background, and status stripe for scheduler printing.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.Scheduler.dll
Syntax:
public class AppointmentPrintElement : RadPrintElement
Inheritance: objectRadPrintElementAppointmentPrintElement
Inherited Members
Constructors
Creates an unbound appointment print element that can be configured through its properties.
public AppointmentPrintElement()
Creates a print element for the specified appointment and scheduler data.
public AppointmentPrintElement(IEvent appointment, ISchedulerData data)
The appointment to render, or null to create an unbound element.
dataISchedulerDataThe scheduler data used to resolve appointment background and status information.
Properties
Gets or sets the appointment which this element represents.
public IEvent Appointment { get; set; }
Gets the end date of the appointment according to the selected timezone.
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.
public bool ShowHours { get; set; }
Gets the start date of the appointment according to the selected timezone.
public DateTime Start { get; }
Gets or sets the width of the status idicator.
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.
public override string Text { get; set; }
Overrides:
Gets or sets the format in which the times will be shown when ShowHours is true.
public string TimeFormat { get; set; }
Methods
Paints the appointment background and status stripe when scheduler data and an appointment are assigned.
protected override void PaintFill(Graphics g, RectangleF rect)
The graphics surface used to draw the element.
rectRectangleFThe element bounds.
Overrides:
Reserves the status-stripe width on the left before painting appointment text.
protected override void PaintText(Graphics g, RectangleF rect)
The graphics surface used to draw the text.
rectRectangleFThe text bounds.
Overrides: