2 writes to Margins
System.Drawing.Common.Tests (1)
System\Drawing\Printing\PageSettingsTests.cs (1)
41
Margins
= new Margins(120, 130, 140, 150),
System.Windows.Forms (1)
System\Windows\Forms\Printing\PageSetupDialog.cs (1)
261
pageSettings.
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)
204
pageSettings.
Margins
.Left,
205
pageSettings.
Margins
.Top,
206
pageBounds.Width - (pageSettings.
Margins
.Left + pageSettings.
Margins
.Right),
207
pageBounds.Height - (pageSettings.
Margins
.Top + pageSettings.
Margins
.Bottom));
System\Drawing\Printing\PrinterSettings.cs (4)
499
g.TranslateTransform(_defaultPageSettings.
Margins
.Left, _defaultPageSettings.
Margins
.Top);
521
g.TranslateTransform(pageSettings.
Margins
.Left, pageSettings.
Margins
.Top);
System\Drawing\Printing\PrintPreviewGraphics.cs (2)
46
graphics.TranslateTransform(_printDocument.DefaultPageSettings.
Margins
.Left, _printDocument.DefaultPageSettings.
Margins
.Top);
System.Drawing.Common.Tests (2)
System\Drawing\Printing\PageSettingsTests.cs (2)
48
Assert.Equal(ps.
Margins
, clone.
Margins
);
System.Windows.Forms (3)
System\Windows\Forms\Printing\PageSetupDialog.cs (3)
198
if (_pageSettings?.
Margins
is not null)
311
if (_pageSettings.
Margins
is not null)
313
Margins margins = PrinterUnitConvert.Convert(_pageSettings.
Margins
, PrinterUnit.Display, toUnit);