Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

PdfPrinterSettings.PrintInGrayscale Property

Gets or sets a value which indicates whether to print the document content in grayscale.

Namespace: DevExpress.Pdf

Assembly: DevExpress.Pdf.v24.2.Drawing.dll

NuGet Package: DevExpress.Pdf.Drawing

#Declaration

[DefaultValue(true)]
public bool PrintInGrayscale { get; set; }

#Property Value

Type Default Description
Boolean true

true to print a document content in grayscale; false the current printer settings are used.

#Property Paths

You can access this nested property as listed below:

Library Object Type Path to PrintInGrayscale
WinForms Controls PdfPageSetupDialogShowingEventArgs
.PrinterSettings .PrintInGrayscale
WPF Controls PageSetupDialogShowingEventArgs
.PrinterSettings .PrintInGrayscale

#Remarks

The property is set to false by default. Use the true option of the PrintInGrayscale property if a printer can’t print a document in grayscale using the standard PageSettings.Color property set to false.

See Also