7 references to new
System.Drawing.Common.Tests (6)
System\Drawing\FontTests.cs (6)
146using Font font = new(fontFamily, emSize, unit); 328AssertExtensions.Throws<ArgumentNullException>("family", () => new Font((FontFamily)null, 10, GraphicsUnit.Display)); 345AssertExtensions.Throws<ArgumentException>(null, () => new Font(family, 10, GraphicsUnit.Display)); 364AssertExtensions.Throws<ArgumentException>("emSize", () => new Font(family, emSize, GraphicsUnit.Document)); 381AssertExtensions.Throws<ArgumentException>(null, () => new Font(family, 10, unit)); 686using Font font = new(family, 10, unit);
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\ControlDesigner.cs (1)
2260using (Font errorFont = new(