5 references to new
System.Drawing.Common.Tests (4)
System\Drawing\FontConverterTests.cs (1)
146
{ new
Font
("Courier", 1.0f, FontStyle.Regular, GraphicsUnit.Pixel, gdiCharSet: 1 /* DEFAULT_CHARSET */, gdiVerticalFont: true), 6 },
System\Drawing\FontTests.cs (3)
287
using Font font =
new
(fontFamily.Name, emSize, style, unit, gdiCharSet, gdiVerticalFont);
371
AssertExtensions.Throws<ArgumentException>("emSize", () => new
Font
(family.Name, emSize, FontStyle.Italic, GraphicsUnit.Document, 10, gdiVerticalFont: true));
388
AssertExtensions.Throws<ArgumentException>(null, () => new
Font
(family.Name, 10, FontStyle.Italic, unit, 10, gdiVerticalFont: true));
System.Windows.Forms (1)
System\Windows\Forms\ActiveX\AxHost.cs (1)
3745
:
new
(f.Name, f.SizeInPoints, f.Style, GraphicsUnit.Point, f.GdiCharSet, f.GdiVerticalFont);