3 writes to PrinterSettings
System.Workflow.ComponentModel (3)
AuthoringOM\Design\CommandSet.cs (2)
793
printDoc.
PrinterSettings
= printDialog.PrinterSettings;
800
printDoc.
PrinterSettings
= cachedPrinterSettings;
AuthoringOM\Design\Dialogs\WorkflowPageSetupDialog.cs (1)
1036
this.printDocument.
PrinterSettings
= printDialog.PrinterSettings;
30 references to PrinterSettings
System.Drawing (15)
commonui\System\Drawing\Printing\DefaultPrintController.cs (7)
30
if (document.
PrinterSettings
.PrintDialogDisplayed) {
33
else if (document.
PrinterSettings
.IsDefaultPrinter) {
57
if (!document.
PrinterSettings
.IsValid)
58
throw new InvalidPrinterException(document.
PrinterSettings
);
60
dc = document.
PrinterSettings
.CreateDeviceContext(modeHandle);
63
if (document.
PrinterSettings
.PrintToFile)
64
info.lpszOutput = document.
PrinterSettings
.OutputPort; //This will be "FILE:"
commonui\System\Drawing\Printing\PreviewPrintController.cs (3)
69
if (!document.
PrinterSettings
.IsValid)
70
throw new InvalidPrinterException(document.
PrinterSettings
);
76
dc = document.
PrinterSettings
.CreateInformationContext(modeHandle);
commonui\System\Drawing\Printing\PrintController.cs (3)
122
printAction = document.
PrinterSettings
.PrintToFile ? PrintAction.PrintToFile : PrintAction.PrintToPrinter;
165
document.
PrinterSettings
.PrintDialogDisplayed = false;
282
modeHandle = (SafeDeviceModeHandle)document.
PrinterSettings
.GetHdevmode(document.DefaultPageSettings);
commonui\System\Drawing\Printing\PrintDocument.cs (2)
331
if (!this.
PrinterSettings
.IsDefaultPrinter && !this.
PrinterSettings
.PrintDialogDisplayed)
System.Windows.Forms (4)
winforms\Managed\System\WinForms\Printing\PageSetupDialog.cs (1)
140
printerSettings = printDocument.
PrinterSettings
;
winforms\Managed\System\WinForms\Printing\PrintDialog.cs (1)
135
settings = printDocument.
PrinterSettings
;
winforms\Managed\System\WinForms\Printing\PrintPreviewDialog.cs (2)
1604
if (Document != null && !Document.
PrinterSettings
.IsValid)
1605
throw new InvalidPrinterException(Document.
PrinterSettings
);
System.Workflow.ComponentModel (11)
AuthoringOM\Design\CommandSet.cs (1)
788
PrinterSettings cachedPrinterSettings = printDoc.
PrinterSettings
;
AuthoringOM\Design\Dialogs\WorkflowPageSetupDialog.cs (7)
1016
this.printDocument.
PrinterSettings
.DefaultPageSettings.PaperSize = this.printDocument.DefaultPageSettings.PaperSize;
1017
this.printDocument.
PrinterSettings
.DefaultPageSettings.PaperSource = this.printDocument.DefaultPageSettings.PaperSource;
1018
this.printDocument.
PrinterSettings
.DefaultPageSettings.Landscape = this.printDocument.PageSetupData.Landscape;
1019
this.printDocument.
PrinterSettings
.DefaultPageSettings.Margins = margins;
1143
PrinterSettings.PaperSizeCollection paperSizeCollection = this.printDocument.
PrinterSettings
.PaperSizes;
1144
PrinterSettings.PaperSourceCollection paperSourceCollection = this.printDocument.
PrinterSettings
.PaperSources;
1168
this.printDocument.DefaultPageSettings = new PageSettings(this.printDocument.
PrinterSettings
);
AuthoringOM\Design\WorkflowLayouts.cs (1)
857
using (Graphics printerGraphics = this.printDocument.
PrinterSettings
.CreateMeasurementGraphics())
AuthoringOM\Design\WorkflowPrinting.cs (2)
97
bool validPrinter = (
PrinterSettings
.IsValid &&
99
new ArrayList(PrinterSettings.InstalledPrinters).Contains(
PrinterSettings
.PrinterName));