DailyPrintStyle.PrintTime Property
In This Article
Gets or sets the time interval for printing.
Namespace: DevExpress.XtraScheduler.Printing
Assembly: DevExpress.XtraScheduler.v24.2.dll
NuGet Package: DevExpress.Win.Scheduler
#Declaration
[XtraSerializableProperty(XtraSerializationVisibility.Content)]
public TimeOfDayInterval PrintTime { get; set; }
#Property Value
Type | Description |
---|---|
Time |
A Time |
#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();
See Also