171 references to new
System.Drawing.Common.Tests (5)
mono\System.Drawing\GraphicsTests.cs (1)
48
_font = new
Font
("Arial", 12);
System\Drawing\FontConverterTests.cs (1)
139
{ new
Font
("Arial", 12.0f), 2 },
System\Drawing\FontTests.cs (3)
79
using Font font =
new
(fontFamily.Name, emSize);
300
using Font font =
new
($"@{family.Name}", 10);
361
AssertExtensions.Throws<ArgumentException>("emSize", () => new
Font
(family.Name, emSize));
System.Windows.Forms.Design (3)
System\ComponentModel\Design\ByteViewer.cs (2)
37
private static readonly Font s_addressFont =
new
("Microsoft Sans Serif", 8.0f);
38
private static readonly Font s_hexDumpFont =
new
("Courier New", 8.0f);
System\Windows\Forms\Design\SplitterPanelDesigner.cs (1)
191
using Font drawFont =
new
("Arial", 8);
System.Windows.Forms.Design.Tests (2)
System\Windows\Forms\Design\BaseContextMenuStripTests.cs (1)
18
Font expectedFont = new
Font
("Arial", 12.0f);
System\Windows\Forms\Design\DataGridViewAddColumnDialogTests.cs (1)
31
using Font expectedFont =
new
("Arial", 12);
System.Windows.Forms.Tests (158)
CheckedListBoxTests.cs (1)
410
yield return new object[] { new
Font
("Arial", 8.25f), new Rectangle(10, 20, 30, 40), 1, DrawItemState.Default, Color.Red, Color.Blue };
System\Windows\Forms\AxHostTests.cs (2)
1448
using Font font =
new
("Arial", 10);
1524
using Font font =
new
("Arial", 10);
System\Windows\Forms\ButtonTests.cs (2)
691
using Font font =
new
("Arial", 100f);
721
using Font font1 =
new
("Arial", 8.25f);
System\Windows\Forms\ClipboardTests.cs (1)
1073
using Font font =
new
("Microsoft Sans Serif", emSize: 10);
System\Windows\Forms\ComboBoxTests.cs (1)
1019
using Font font1 =
new
("Arial", 8.25f);
System\Windows\Forms\ComponentModel\Com2Interop\COM2FontConverterTests.cs (1)
75
using Font newFont =
new
(font.Name, 20.0f);
System\Windows\Forms\ContainerControlTests.cs (1)
462
using Font font1 =
new
("Arial", 8.25f);
System\Windows\Forms\ControlTests.ControlCollection.cs (8)
651
Font font =
new
("Arial", 8.25f);
801
Font font =
new
("Arial", 8.25f);
954
Font font =
new
("Arial", 8.25f);
1027
Font font =
new
("Arial", 8.25f);
2354
Font font =
new
("Arial", 8.25f);
2498
Font font =
new
("Arial", 8.25f);
2630
Font font =
new
("Arial", 8.25f);
2694
Font font =
new
("Arial", 8.25f);
System\Windows\Forms\ControlTests.Handlers.cs (3)
1786
using Font childFont1 =
new
("Arial", 1);
1787
using Font childFont2 =
new
("Arial", 2);
4490
Font font =
new
("Arial", 8.25f);
System\Windows\Forms\ControlTests.Methods.cs (1)
6407
using Font font =
new
("Arial", 8.25f);
System\Windows\Forms\ControlTests.Properties.cs (18)
4799
using Font font1 =
new
("Arial", 8.25f);
4800
using Font font2 =
new
("Arial", 8.5f);
4819
using Font font1 =
new
("Arial", 8.25f);
4820
using Font font2 =
new
("Arial", 8.5f);
4857
Font font =
new
("Arial", 8.25f);
4884
Font font =
new
("Arial", 8.25f);
4896
Font = new
Font
("Arial", 1)
4917
Font = new
Font
("Arial", 1)
4936
yield return new object[] { userPaint, new
Font
("Arial", 8.25f), 1 };
4979
yield return new object[] { userPaint, new
Font
("Arial", 8.25f) };
4990
Font = new
Font
("Arial", 1)
5035
using Font font1 =
new
("Arial", 8.25f);
5098
using Font font1 =
new
("Arial", 8.25f);
5151
using Font childFont1 =
new
("Arial", 1);
5152
using Font childFont2 =
new
("Arial", 1);
5191
using Font font1 =
new
("Arial", 8.25f);
5248
using Font font =
new
("Arial", 8.25f);
5273
using Font font =
new
("Arial", 8.25f);
System\Windows\Forms\DataGridViewRowTests.cs (1)
2024
using Font font =
new
("Times New Roman", 12);
System\Windows\Forms\DataGridViewTests.cs (2)
3509
using Font font1 =
new
("Arial", 12);
3510
using Font font2 =
new
("Times New Roman", 14);
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (4)
550
using Font font =
new
("Arial", 8.25f);
737
using Font oldFont =
new
("Arial", 8.25f);
759
using Font font =
new
("Arial", 8.25f);
947
using Font oldFont =
new
("Arial", 8.25f);
System\Windows\Forms\DataObjectTests.cs (3)
2908
using Font value =
new
("Arial", 10);
2991
Font font =
new
("Consolas", emSize: 10);
3035
result.Font =
new
(fontFamily, size);
System\Windows\Forms\DateTimePickerTests.cs (2)
286
using (Font expectedFont =
new
("Arial", 8.25f))
292
using (Font differentFont =
new
("Times New Roman", 10f))
System\Windows\Forms\FontCacheTests.cs (1)
18
fonts[i] = new
Font
("Arial", i + 6);
System\Windows\Forms\FontDialogTests.cs (10)
231
using Font font =
new
("Arial", 8.25f);
243
using Font font =
new
("Arial", 8.25f);
261
using Font font =
new
("Arial", 8.25f);
279
using Font font =
new
("Arial", 8.25f);
293
Font font =
new
("Arial", 8.25f);
316
using Font font =
new
("Arial", 8.25f);
337
using Font font =
new
("Arial", 8.25f);
354
using Font font =
new
("Arial", 8.25f);
585
using Font font =
new
("Arial", 8.25f);
699
using Font font =
new
("Arial", 8.25f);
System\Windows\Forms\GroupBoxTests.cs (2)
578
using Font font =
new
("Arial", 8.25f);
591
using Font font =
new
("Arial", 8.25f);
System\Windows\Forms\LinkUtilitiesTests.cs (2)
37
using Font baseFont =
new
("Arial", 12);
54
using Font baseFont =
new
("Arial", 12);
System\Windows\Forms\ListBoxTests.cs (6)
1047
yield return new object[] { integralHeight, new
Font
("Arial", 8.25f) };
1107
yield return new object[] { true, new
Font
("Arial", 8.25f), 1, 1 };
1108
yield return new object[] { false, new
Font
("Arial", 8.25f), 1, 2 };
1153
yield return new object[] { true, new
Font
("Arial", 8.25f), 1, 1 };
1154
yield return new object[] { false, new
Font
("Arial", 8.25f), 2, 3 };
1212
using Font font1 =
new
("Arial", 8.25f);
System\Windows\Forms\Ole\BinaryFormatUtilitiesTests.cs (1)
95
using Font value =
new
("Microsoft Sans Serif", emSize: 10);
System\Windows\Forms\PictureBoxTests.cs (1)
502
using Font font1 =
new
("Arial", 8.25f);
System\Windows\Forms\ProgressBarTests.cs (1)
507
using Font font1 =
new
("Arial", 8.25f);
System\Windows\Forms\RichTextBoxTests.cs (11)
1374
using Font oldValue =
new
("Arial", 1);
1396
using Font oldValue =
new
("Arial", 1);
1419
yield return new object[] { userPaint, new
Font
("Arial", 8.25f), 1 };
1499
yield return new object[] { userPaint, new
Font
("Arial", 8.25f) };
1508
using Font oldValue =
new
("Arial", 1);
1546
using Font oldValue =
new
("Arial", 1);
1649
using Font font1 =
new
("Arial", 8.25f);
4824
using Font value = hasStyle ? new Font(fontName, fontSize, fontStyle, units, gdiCharSet) : new
Font
(fontName, fontSize);
4851
using Font value = hasStyle ? new Font(fontName, fontSize, fontStyle, units, gdiCharSet) : new
Font
(fontName, fontSize);
4888
yield return new object[] { new
Font
("Arial", 8.25f) };
4917
yield return new object[] { new
Font
("Arial", 8.25f), 165, 0 };
System\Windows\Forms\ScrollBarTests.cs (1)
515
using Font font1 =
new
("Arial", 8.25f);
System\Windows\Forms\SplitterTests.cs (1)
767
using Font font1 =
new
("Arial", 8.25f);
System\Windows\Forms\ToolStripButtonTests.cs (3)
1275
using Font font =
new
("Arial", 8.25f);
1366
using Font font =
new
("Arial", 8.25f);
1465
using Font font =
new
("Arial", 8.25f);
System\Windows\Forms\ToolStripControlHostTests.cs (5)
617
using Font value =
new
("Arial", 8.25f);
960
yield return new object[] { displayStyle, new
Font
("Arial", 8.25f) };
993
using Font font =
new
("Arial", 8.25f);
1005
using Font font =
new
("Arial", 8.25f);
1045
using Font font =
new
("Arial", 8.25f);
System\Windows\Forms\ToolStripDropDownTests.cs (9)
1485
using Font font1 =
new
("Arial", 8.25f);
1486
using Font font2 =
new
("Arial", 8.5f);
1506
using Font font1 =
new
("Arial", 8.25f);
1507
using Font font2 =
new
("Arial", 8.5f);
1557
using Font font1 =
new
("Arial", 8.25f);
1604
using Font font1 =
new
("Arial", 8.25f);
1645
using Font childFont1 =
new
("Arial", 1);
1646
using Font childFont2 =
new
("Arial", 1);
1669
using Font font1 =
new
("Arial", 8.25f);
System\Windows\Forms\ToolStripItemTests.cs (15)
2934
using Font font =
new
("Arial", 8.25f);
2952
using Font font =
new
("Arial", 8.25f);
2969
yield return new object[] { displayStyle, new
Font
("Arial", 8.25f) };
2997
yield return new object[] { ToolStripItemDisplayStyle.None, new
Font
("Arial", 8.25f), 0 };
2998
yield return new object[] { ToolStripItemDisplayStyle.Text, new
Font
("Arial", 8.25f), 1 };
2999
yield return new object[] { ToolStripItemDisplayStyle.Image, new
Font
("Arial", 8.25f), 0 };
3000
yield return new object[] { ToolStripItemDisplayStyle.ImageAndText, new
Font
("Arial", 8.25f), 1 };
3184
using Font font =
new
("Arial", 8.25f);
3213
using Font font =
new
("Arial", 8.25f);
12265
item.Font = new
Font
("Arial", 8.25f);
12303
item.Font = new
Font
("Arial", 8.25f);
12364
item.Font = new
Font
("Arial", 8.25f);
12406
item.Font = new
Font
("Arial", 8.25f);
12456
item.Font = new
Font
("Arial", 8.25f);
14119
using Font font =
new
("Arial", 8.25f);
System\Windows\Forms\ToolStripLabelTests.cs (3)
170
accessor._linkFont = new
Font
("Arial", 10);
183
accessor._linkFont = new
Font
("Arial", 10);
186
_toolStripLabel.Font = new
Font
("Times New Roman", 12);
System\Windows\Forms\ToolStripMenuItemTests.cs (1)
285
Font = new
Font
("Arial", 12),
System\Windows\Forms\ToolStripSeparatorTests.cs (1)
314
yield return new object[] { displayStyle, new
Font
("Arial", 8.25f) };
System\Windows\Forms\ToolStripTests.cs (13)
1401
using Font font1 =
new
("Arial", 8.25f);
1402
using Font font2 =
new
("Arial", 8.5f);
1422
using Font font1 =
new
("Arial", 8.25f);
1423
using Font font2 =
new
("Arial", 8.5f);
1473
using Font font1 =
new
("Arial", 8.25f);
1520
using Font font1 =
new
("Arial", 8.25f);
1561
using Font childFont1 =
new
("Arial", 1);
1562
using Font childFont2 =
new
("Arial", 1);
1585
using Font font1 =
new
("Arial", 8.25f);
1627
using Font font =
new
("Microsoft Sans Serif", 8.25f);
1647
using Font font =
new
("Microsoft Sans Serif", 8.25f);
5311
using Font childFont1 =
new
("Arial", 1);
5312
using Font childFont2 =
new
("Arial", 2);
System\Windows\Forms\ToolStripTextBoxTests.cs (1)
190
_toolStripTextBox.Font = new
Font
("Arial", 8.25f);
System\Windows\Forms\TreeNodeTests.cs (5)
2835
yield return new object[] { new
Font
("Arial", 8.25f), 1 };
2873
using Font oldValue =
new
("Arial", 1);
2892
using Font oldValue =
new
("Arial", 1);
2912
yield return new object[] { new
Font
("Arial", 8.25f), 1 };
2920
using Font oldValue =
new
("Arial", 1);
Text\FontMetrics.cs (5)
20
using Font font =
new
(family, size);
39
using Font font =
new
(family, size);
60
using Font font =
new
(family, size);
78
using Font font =
new
(family, size);
135
using Font font =
new
(family, size);
TextBoxBaseTests.cs (8)
912
using Font oldValue =
new
("Arial", 1);
934
using Font oldValue =
new
("Arial", 1);
957
yield return new object[] { userPaint, new
Font
("Arial", 8.25f), 1 };
1037
yield return new object[] { userPaint, new
Font
("Arial", 8.25f) };
1046
using Font oldValue =
new
("Arial", 1);
1084
using Font oldValue =
new
("Arial", 1);
1133
using Font font1 =
new
("Arial", 8.25f);
1280
using Font font =
new
("Arial", 8.25f);
TrackBarTests.cs (1)
656
using Font font1 =
new
("Arial", 8.25f);
TestPassApp (1)
PrintingControls.cs (1)
22
Font font =
new
("Times New Roman", 30);
WinFormsControlsTest (2)
DragDrop.Designer.cs (2)
86
textBox.Font = new
Font
("Segoe UI", 14.25F);
97
richTextBox.Font = new
Font
("Segoe UI", 14.25F);