17 references to new
System.Drawing.Common (2)
System\Drawing\Printing\PageSettings.cs (1)
17private Margins _margins = new();
System\Drawing\Printing\PrinterUnitConvert.cs (1)
55public static Margins Convert(Margins value, PrinterUnit fromUnit, PrinterUnit toUnit) => new()
System.Drawing.Common.Tests (11)
System\Drawing\Printing\MarginsConverterTests.cs (1)
123Margins margins = new() { Left = 1, Right = 2, Top = 3, Bottom = 4 };
System\Drawing\Printing\MarginsTests.cs (10)
35Margins margins = new(); 129yield return new object[] { new Margins(), "[Margins Left=100 Right=100 Top=100 Bottom=100]" }; 163Margins margins = new() 177Margins margins = new(); 185Margins margins = new() 199Margins margins = new(); 207Margins margins = new() 221Margins margins = new(); 229Margins margins = new() 243Margins margins = new();
System.Windows.Forms (1)
System\Windows\Forms\Printing\PageSetupDialog.cs (1)
249Margins newMargins = new()
System.Windows.Forms.Tests (3)
System\Windows\Forms\PageSetupDialogTests.cs (3)
197yield return new object[] { new Margins(), new Margins() }; 240yield return new object[] { new Margins(), true };