7 writes to MinMargins
System.Windows.Forms (2)
System\Windows\Forms\Printing\PageSetupDialog.cs (2)
215MinMargins = null; // turns into Margin with all zeros 225private void ResetMinMargins() => MinMargins = null;
System.Windows.Forms.Tests (5)
System\Windows\Forms\PageSetupDialogTests.cs (5)
212MinMargins = value 217dialog.MinMargins = value; 228dialog.MinMargins = new Margins(1, 2, 3, 4); 257dialog.MinMargins = value; 414MinMargins = new Margins(1, 2, 3, 4),
18 references to MinMargins
System.Windows.Forms (3)
System\Windows\Forms\Printing\PageSetupDialog.cs (3)
228/// Indicates whether the <see cref="MinMargins"/> property should be persisted. 302if (MinMargins is not null) 304Margins margins = PrinterUnitConvert.Convert(MinMargins, PrinterUnit.Display, toUnit);
System.Windows.Forms.Tests (15)
System\Windows\Forms\PageSetupDialogTests.cs (15)
22Assert.Equal(new Margins(0, 0, 0, 0), dialog.MinMargins); 23Assert.Same(dialog.MinMargins, dialog.MinMargins); 214Assert.Equal(expected, dialog.MinMargins); 218Assert.Equal(expected, dialog.MinMargins); 225PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(PageSetupDialog))[nameof(PageSetupDialog.MinMargins)]; 230Assert.Equal(new Margins(1, 2, 3, 4), dialog.MinMargins); 234Assert.Equal(new Margins(0, 0, 0, 0), dialog.MinMargins); 254PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(PageSetupDialog))[nameof(PageSetupDialog.MinMargins)]; 393Assert.Equal(new Margins(0, 0, 0, 0), dialog.MinMargins); 394Assert.Same(dialog.MinMargins, dialog.MinMargins); 429Assert.Equal(new Margins(0, 0, 0, 0), dialog.MinMargins); 430Assert.Same(dialog.MinMargins, dialog.MinMargins);