DailyPrintStyle.PrintTime Property
Gets or sets the time interval for printing.
Namespace: DevExpress.XtraScheduler.Printing
Assembly: DevExpress.XtraScheduler.v19.2.dll
Declaration
[XtraSerializableProperty(XtraSerializationVisibility.Content)]
public TimeOfDayInterval PrintTime { get; set; }
Property Value
Type | Description |
---|---|
TimeOfDayInterval | A TimeOfDayInterval object that specifies the time interval. |
Remarks
The PrintTime property specifies the print time interval. To print extended lines with text information on appointments which do not fall in the PrintTime interval, set the DailyPrintStyle.PrintAllAppointments to true.
Example
Note
A complete sample project is available at https://github.com/DevExpress-Examples/printing-how-to-customize-default-print-styles-t147965
DailyPrintStyle printStyle = (DailyPrintStyle)schedulerControl1.PrintStyles[SchedulerPrintStyleKind.Daily];
printStyle.UseActiveViewTimeScale = true;
printStyle.PrintTime.Start = schedulerControl1.SelectedInterval.Start.TimeOfDay;
printStyle.PrintTime.End = schedulerControl1.SelectedInterval.End.TimeOfDay;
if ((this.schedulerControl1.DayView.TimeScale.Hours < 1) || (printStyle.PrintTime.Duration.TotalHours > 4))
{
printStyle.CalendarHeaderVisible = false;
printStyle.AutoScaleHeadingsFont = false;
printStyle.HeadingsFont = new Font("Verdana", 8);
printStyle.AppointmentFont = new Font("Verdana", 8);
}
schedulerControl1.ShowPrintPreview(printStyle);
schedulerControl1.PrintStyles.LoadDefaults();
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the PrintTime property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.