2 writes to Margins
System.Drawing.Common.Tests (1)
System\Drawing\Printing\PageSettingsTests.cs (1)
41Margins = new Margins(120, 130, 140, 150),
System.Windows.Forms (1)
System\Windows\Forms\Printing\PageSetupDialog.cs (1)
261pageSettings.Margins = PrinterUnitConvert.Convert(newMargins, fromUnit, PrinterUnit.Display);
22 references to Margins
System.Drawing.Common (17)
System\Drawing\Printing\DefaultPrintController.cs (2)
102_graphics.TranslateTransform(document.DefaultPageSettings.Margins.Left, document.DefaultPageSettings.Margins.Top);
System\Drawing\Printing\PageSettings.cs (1)
499$"[{nameof(PageSettings)}: Color={Color}, Landscape={Landscape}, Margins={Margins}, PaperSize={PaperSize}, PaperSource={PaperSource}, PrinterResolution={PrinterResolution}]";
System\Drawing\Printing\PreviewPrintController.cs (2)
89_graphics.TranslateTransform(document.DefaultPageSettings.Margins.Left, document.DefaultPageSettings.Margins.Top);
System\Drawing\Printing\PrintController.cs (6)
204pageSettings.Margins.Left, 205pageSettings.Margins.Top, 206pageBounds.Width - (pageSettings.Margins.Left + pageSettings.Margins.Right), 207pageBounds.Height - (pageSettings.Margins.Top + pageSettings.Margins.Bottom));
System\Drawing\Printing\PrinterSettings.cs (4)
499g.TranslateTransform(_defaultPageSettings.Margins.Left, _defaultPageSettings.Margins.Top); 521g.TranslateTransform(pageSettings.Margins.Left, pageSettings.Margins.Top);
System\Drawing\Printing\PrintPreviewGraphics.cs (2)
46graphics.TranslateTransform(_printDocument.DefaultPageSettings.Margins.Left, _printDocument.DefaultPageSettings.Margins.Top);
System.Drawing.Common.Tests (2)
System\Drawing\Printing\PageSettingsTests.cs (2)
48Assert.Equal(ps.Margins, clone.Margins);
System.Windows.Forms (3)
System\Windows\Forms\Printing\PageSetupDialog.cs (3)
198if (_pageSettings?.Margins is not null) 311if (_pageSettings.Margins is not null) 313Margins margins = PrinterUnitConvert.Convert(_pageSettings.Margins, PrinterUnit.Display, toUnit);