53 references to PrinterSettings
System.Windows.Forms (51)
winforms\Managed\System\WinForms\Printing\PrintDialog.cs (51)
142
return
PrinterSettings
.DefaultPageSettings;
172
if (value !=
PrinterSettings
)
258
flags |= (int)
PrinterSettings
.PrintRange;
263
if (
PrinterSettings
.Collate) flags |= NativeMethods.PD_COLLATE;
376
data.nCopies = (short)
PrinterSettings
.Copies;
384
data.hDevMode =
PrinterSettings
.GetHdevmode();
386
data.hDevMode =
PrinterSettings
.GetHdevmode(PageSettings);
388
data.hDevNames =
PrinterSettings
.GetHdevnames();
402
if (
PrinterSettings
.FromPage <
PrinterSettings
.MinimumPage
403
||
PrinterSettings
.FromPage >
PrinterSettings
.MaximumPage)
405
if (
PrinterSettings
.ToPage <
PrinterSettings
.MinimumPage
406
||
PrinterSettings
.ToPage >
PrinterSettings
.MaximumPage)
408
if (
PrinterSettings
.ToPage <
PrinterSettings
.FromPage)
411
data.nFromPage = (short)
PrinterSettings
.FromPage;
412
data.nToPage = (short)
PrinterSettings
.ToPage;
413
data.nMinPage = (short)
PrinterSettings
.MinimumPage;
414
data.nMaxPage = (short)
PrinterSettings
.MaximumPage;
428
PrinterSettings
.PrintToFile = PrintToFile;
431
PrinterSettings
.FromPage = data.nFromPage;
432
PrinterSettings
.ToPage = data.nToPage;
442
PrinterSettings
.Copies = data.nCopies;
443
PrinterSettings
.Collate = ((data.Flags & NativeMethods.PD_COLLATE) == NativeMethods.PD_COLLATE);
460
data.nCopies =
PrinterSettings
.Copies;
466
data.hDevMode =
PrinterSettings
.GetHdevmode();
468
data.hDevMode =
PrinterSettings
.GetHdevmode(PageSettings);
470
data.hDevNames =
PrinterSettings
.GetHdevnames();
484
if (
PrinterSettings
.FromPage <
PrinterSettings
.MinimumPage
485
||
PrinterSettings
.FromPage >
PrinterSettings
.MaximumPage)
487
if (
PrinterSettings
.ToPage <
PrinterSettings
.MinimumPage
488
||
PrinterSettings
.ToPage >
PrinterSettings
.MaximumPage)
490
if (
PrinterSettings
.ToPage <
PrinterSettings
.FromPage)
495
*pageRangeField =
PrinterSettings
.FromPage;
497
*pageRangeField =
PrinterSettings
.ToPage;
501
data.nMinPage =
PrinterSettings
.MinimumPage;
502
data.nMaxPage =
PrinterSettings
.MaximumPage;
517
UpdatePrinterSettings(data.hDevMode, data.hDevNames, (short)data.nCopies, data.Flags,
PrinterSettings
, PageSettings);
523
PrinterSettings
.PrintToFile = PrintToFile;
527
PrinterSettings
.FromPage = *pageRangeField;
529
PrinterSettings
.ToPage = *pageRangeField;
540
PrinterSettings
.Copies = (short)(data.nCopies);
541
PrinterSettings
.Collate = ((data.Flags & NativeMethods.PD_COLLATE) == NativeMethods.PD_COLLATE);
System.Workflow.ComponentModel (2)
AuthoringOM\Design\CommandSet.cs (1)
793
printDoc.PrinterSettings = printDialog.
PrinterSettings
;
AuthoringOM\Design\Dialogs\WorkflowPageSetupDialog.cs (1)
1036
this.printDocument.PrinterSettings = printDialog.
PrinterSettings
;