3 writes to Margins
System.Windows.Forms (1)
winforms\Managed\System\WinForms\Printing\PageSetupDialog.cs (1)
344
pageSettings.
Margins
= PrinterUnitConvert.Convert(newMargins, fromUnit, PrinterUnit.Display);
System.Workflow.ComponentModel (2)
AuthoringOM\Design\Dialogs\WorkflowPageSetupDialog.cs (2)
1013
this.printDocument.DefaultPageSettings.
Margins
= margins;
1019
this.printDocument.PrinterSettings.DefaultPageSettings.
Margins
= margins;
29 references to Margins
System.Drawing (17)
commonui\System\Drawing\Printing\DefaultPrintController.cs (2)
133
graphics.TranslateTransform(document.DefaultPageSettings.
Margins
.Left, document.DefaultPageSettings.
Margins
.Top);
commonui\System\Drawing\Printing\PageSettings.cs (1)
589
+ ", Margins=" +
Margins
.ToString()
commonui\System\Drawing\Printing\PreviewPrintController.cs (2)
142
graphics.TranslateTransform(document.DefaultPageSettings.
Margins
.Left, document.DefaultPageSettings.
Margins
.Top);
commonui\System\Drawing\Printing\PrintController.cs (6)
264
Rectangle marginBounds = new Rectangle(pageSettings.
Margins
.Left,
265
pageSettings.
Margins
.Top,
266
pageBounds.Width - (pageSettings.
Margins
.Left + pageSettings.
Margins
.Right),
267
pageBounds.Height - (pageSettings.
Margins
.Top + pageSettings.
Margins
.Bottom));
commonui\System\Drawing\Printing\PrinterSettings.cs (4)
734
g.TranslateTransform(defaultPageSettings.
Margins
.Left, defaultPageSettings.
Margins
.Top);
766
g.TranslateTransform(pageSettings.
Margins
.Left, pageSettings.
Margins
.Top);
commonui\System\Drawing\Printing\PrintPreviewGraphics.cs (2)
63
graphics.TranslateTransform(printDocument.DefaultPageSettings.
Margins
.Left, printDocument.DefaultPageSettings.
Margins
.Top);
System.Windows.Forms (3)
winforms\Managed\System\WinForms\Printing\PageSetupDialog.cs (3)
273
if (pageSettings.
Margins
!= null) flags |= NativeMethods.PSD_MARGINS;
389
if (pageSettings.
Margins
!= null) {
390
Margins margins = PrinterUnitConvert.Convert(pageSettings.
Margins
, PrinterUnit.Display, toUnit);
System.Workflow.ComponentModel (9)
AuthoringOM\Design\WorkflowPrinting.cs (9)
122
Margins margins = new Margins(Math.Max(printPageArg.PageSettings.
Margins
.Left, hardMargins.Left),
123
Math.Max(printPageArg.PageSettings.
Margins
.Right, hardMargins.Right),
124
Math.Max(printPageArg.PageSettings.
Margins
.Top, hardMargins.Top),
125
Math.Max(printPageArg.PageSettings.
Margins
.Bottom, hardMargins.Bottom));
322
Margins margins = new Margins(Math.Max(printPageArg.PageSettings.
Margins
.Left, hardMargins.Left),
323
Math.Max(printPageArg.PageSettings.
Margins
.Right, hardMargins.Right),
324
Math.Max(printPageArg.PageSettings.
Margins
.Top, hardMargins.Top),
325
Math.Max(printPageArg.PageSettings.
Margins
.Bottom, hardMargins.Bottom));
482
this.margins = printerSettings.DefaultPageSettings.
Margins
;