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