7 references to new
System.Drawing.Common.Tests (4)
System\Drawing\FontTests.cs (4)
106using Font font = new(fontFamily, emSize, style); 327AssertExtensions.Throws<ArgumentNullException>("family", () => new Font((FontFamily)null, 10, FontStyle.Italic)); 344AssertExtensions.Throws<ArgumentException>(null, () => new Font(family, 10, FontStyle.Italic)); 362AssertExtensions.Throws<ArgumentException>("emSize", () => new Font(family, emSize, FontStyle.Italic));
System.Windows.Forms.Tests (1)
System\Windows\Forms\GroupBoxTests.cs (1)
604using Font newFont = new(originalFont.FontFamily, originalFont.Size + 5, originalFont.Style);
WinFormsControlsTest (2)
MenuStripAndCheckedListBox.cs (1)
39menuStrip1.Font = new Font(f.FontFamily, f.Size * factor, f.Style);
ScalingBeforeChanges.cs (1)
100Font = new Font(Font.FontFamily, Font.Size * factorY, Font.Style);