17 references to new
System.Drawing.Common.Tests (15)
System\Drawing\FontTests.cs (15)
272
using Font font =
new
(fontFamily, emSize, style, unit, gdiCharSet, gdiVerticalFont);
331
AssertExtensions.Throws<ArgumentNullException>("family", () => new
Font
((FontFamily)null, 10, FontStyle.Italic, GraphicsUnit.Display, 10, gdiVerticalFont: true));
348
AssertExtensions.Throws<ArgumentException>(null, () => new
Font
(family, 10, FontStyle.Italic, GraphicsUnit.Display, 10, gdiVerticalFont: true));
370
AssertExtensions.Throws<ArgumentException>("emSize", () => new
Font
(family, emSize, FontStyle.Italic, GraphicsUnit.Document, 10, gdiVerticalFont: true));
387
AssertExtensions.Throws<ArgumentException>(null, () => new
Font
(family, 10, FontStyle.Italic, unit, 10, gdiVerticalFont: true));
395
using Font font =
new
(family, 10, FontStyle.Bold, GraphicsUnit.Inch, 10, gdiVerticalFont: true);
420
Font font =
new
(family, 10, FontStyle.Bold, GraphicsUnit.Inch, 10, gdiVerticalFont: true);
423
yield return new object[] { font.Clone(), new
Font
(family, 10, FontStyle.Bold, GraphicsUnit.Inch, 10, gdiVerticalFont: true), false };
424
yield return new object[] { font.Clone(), new
Font
(family, 9, FontStyle.Bold, GraphicsUnit.Inch, 10, gdiVerticalFont: true), false };
425
yield return new object[] { font.Clone(), new
Font
(family, 10, FontStyle.Italic, GraphicsUnit.Millimeter, 10, gdiVerticalFont: true), false };
426
yield return new object[] { font.Clone(), new
Font
(family, 10, FontStyle.Bold, GraphicsUnit.Inch, 9, gdiVerticalFont: true), false };
427
yield return new object[] { font.Clone(), new
Font
(family, 10, FontStyle.Bold, GraphicsUnit.Inch, 10, gdiVerticalFont: false), false };
705
using Font font =
new
(family, 10, fontStyle, GraphicsUnit.Point, gdiCharSet, gdiVerticalFont);
827
using Font font =
new
(family, 10, FontStyle.Bold, GraphicsUnit.Inch, 10, gdiVerticalFont: true);
852
using Font font =
new
(family, 10, FontStyle.Bold, GraphicsUnit.Inch, 10, gdiVerticalFont: true);
System.Windows.Forms (1)
System\Windows\Forms\Rendering\ControlPaint.cs (1)
2062
=>
new
(
System.Windows.Forms.Primitives (1)
System\Windows\Forms\FontExtensions.cs (1)
22
:
new
(