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