Skip to main content

SchedulerPrintStyle.ColorConverter Property

Gets or sets a color converter used by this print style when converting colors.

Namespace: DevExpress.XtraScheduler.Printing

Assembly: DevExpress.XtraScheduler.v24.1.dll

NuGet Package: DevExpress.Win.Scheduler

Declaration

[Browsable(false)]
[XtraSerializableProperty]
public PrintColorConverter ColorConverter { get; set; }

Property Value

Type Description
DevExpress.XtraScheduler.Printing.PrintColorConverter

A DevExpress.XtraScheduler.Printing.PrintColorConverter object which represents the color converter for this print style.

Remarks

The ColorConverter property can be used when converting a color picture to grayscale before printing.

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");
See Also