SchedulerControl.ActivePrintStyle Property
Gets or sets the print style selected to print the scheduler data using printing library.
Namespace: DevExpress.XtraScheduler
Assembly: DevExpress.XtraScheduler.v24.2.dll
NuGet Package: DevExpress.Win.Scheduler
#Declaration
[Browsable(false)]
public SchedulerPrintStyle ActivePrintStyle { get; set; }
#Property Value
Type | Description |
---|---|
Scheduler |
A Scheduler |
#Remarks
The ActivePrintStyle property allows you to get or set an object which contains all the information on how the scheduler’s data will be printed using printing library.
Note
This property always returns the style currently used to print the scheduler’s data. This means that if the Active
#Example
This code snippet obtains the DailyPrintStyle from the SchedulerControl.PrintStyles collection, changes its print color scheme to Grayscale and the page orientation to Landscape and subsequently specifies the modified style as the default print style. To verify changes, you are prompted to invoke the Print Preview window using the command button in the Ribbon UI.
DailyPrintStyle printStyle = (DailyPrintStyle)schedulerControl1.PrintStyles[SchedulerPrintStyleKind.Daily];
printStyle.ColorConverter = PrintColorConverter.GrayScaleColor;
printStyle.PageSettings.Landscape = true;
schedulerControl1.ActivePrintStyle = printStyle;
MessageBox.Show("Click Print Preview to show the printout using the customized DailyPrintStyle.", "Info");