8 references to new
System.Drawing.Common.Tests (6)
System\Drawing\FontConverterTests.cs (3)
100
Font font =
new
($"Courier New", 8.25f, FontStyle.Regular, GraphicsUnit.Point);
142
{ new
Font
("Courier", 1.0f, FontStyle.Regular, GraphicsUnit.Point), 2 },
143
{ new
Font
("Courier", 1.0f, FontStyle.Regular, GraphicsUnit.Inch), 4 },
System\Drawing\FontTests.cs (3)
203
using Font font =
new
(fontFamily.Name, emSize, style, unit);
367
AssertExtensions.Throws<ArgumentException>("emSize", () => new
Font
(family.Name, emSize, FontStyle.Italic, GraphicsUnit.Document));
384
AssertExtensions.Throws<ArgumentException>(null, () => new
Font
(family.Name, 10, FontStyle.Italic, unit));
System.Windows.Forms.UI.IntegrationTests (1)
Dpi\ToolStripItemTests.Dpi.cs (1)
45
using Font initialFont = toolStrip.Font =
new
("Segoe UI", 9F, FontStyle.Bold, GraphicsUnit.Point);
WinFormsControlsTest (1)
MultipleControls.Designer.cs (1)
109
this.richTextBox1.Font = new System.Drawing.
Font
("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);