10 references to new
System.Drawing.Common.Tests (6)
System\Drawing\FontFamilyTests.cs (6)
30
using FontFamily fontFamily =
new
(name);
49
AssertExtensions.Throws<ArgumentException>(null, () => new
FontFamily
(name));
56
AssertExtensions.Throws<ArgumentNullException>("name", () => new
FontFamily
(null!));
113
using FontFamily copy =
new
(fontFamily.Name);
287
using FontFamily fontFamily1 =
new
("Calibri");
288
using FontFamily fontFamily2 =
new
("Calibri");
System.Windows.Forms.Design (1)
System\Drawing\Design\FontNameEditor.cs (1)
41
using FontFamily fontFamily =
new
(fontName);
System.Windows.Forms.Tests (3)
System\Windows\Forms\ApplicationTests.cs (3)
220
Font font = new(new
FontFamily
("Arial"), 12f);
221
Font scaled = new(new
FontFamily
("Arial"), 16f);
310
using Font customFont = new(new
FontFamily
("Arial"), 12f);