Skip to main content
A newer version of this page is available. .

DailyPrintStyle.PrintTime Property

Gets or sets the time interval for printing.

Namespace: DevExpress.XtraScheduler.Printing

Assembly: DevExpress.XtraScheduler.v19.1.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

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();

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.

See Also