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