34 references to new
System.Drawing.Common.Tests (26)
mono\System.Drawing\GraphicsTests.cs (1)
2011using Font font = new(FontFamily.GenericSerif, 11.0f);
mono\System.Imaging\MetafileTest.cs (1)
286Font test_font = new(FontFamily.GenericMonospace, 12);
System\Drawing\FontTests.cs (24)
35using Font font1 = new(fontFamily, size); 36using Font font2 = new(fontFamily, size); 44using Font font1 = new(fontFamily1, 9); 45using Font font2 = new(fontFamily2, 9); 64using Font font = new(fontFamily, emSize); 315Font font = new(family, 10); 326AssertExtensions.Throws<ArgumentNullException>("family", () => new Font((FontFamily)null, 10)); 343AssertExtensions.Throws<ArgumentException>(null, () => new Font(family, 10)); 360AssertExtensions.Throws<ArgumentException>("emSize", () => new Font(family, emSize)); 411Font font = new(family, 10); 429yield return new object[] { new Font(family, 10), new(), false }; 430yield return new object[] { new Font(family, 10), null, false }; 490using Font font = new(family, 10); 501using Font font = new(family, 10); 517using Font font = new(family, 10); 525using Font font = new(family, 10); 533using Font font = new(family, 10); 547Font font = new(family, 10); 735using Font font = new(family, 10); 763using Font font = new(family, 10); 774using Font font = new(family, 10); 782using Font font = new(family, 10); 814using Font font = new(family, 10); 842Font font = new(family, 10);
System.Windows.Forms.Tests (8)
SerializableTypesTests.cs (3)
161using (Font font = new(FontFamily.GenericSansSerif, 9f)) 208using (Font font = new(FontFamily.GenericSansSerif, 9f)) 354NodeFont = new Font(FontFamily.GenericSansSerif, 9f)
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);
System\Windows\Forms\TreeViewTests.cs (2)
2702Font font = new(FontFamily.GenericSansSerif, 100); 2710Font smallFont = new(FontFamily.GenericSansSerif, 2);