Back to Devexpress

PdfPrinterSettings.PrintInGrayscale Property

officefileapi-devexpress-dot-pdf-dot-pdfprintersettings-78025afb.md

latest2.1 KB
Original Source

PdfPrinterSettings.PrintInGrayscale Property

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

Namespace : DevExpress.Pdf

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

NuGet Package : DevExpress.Pdf.Drawing

Declaration

csharp
[DefaultValue(true)]
public bool PrintInGrayscale { get; set; }
vb
<DefaultValue(True)>
Public Property PrintInGrayscale As Boolean

Property Value

TypeDefaultDescription
Booleantrue

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:

LibraryObject TypePath to PrintInGrayscale
WinForms ControlsPdfPageSetupDialogShowingEventArgs

.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

PdfPrinterSettings Class

PdfPrinterSettings Members

DevExpress.Pdf Namespace