163 references to new
Accessibility_Core_App (1)
PrintingControls.cs (1)
22
Font font =
new
("Times New Roman", 30);
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 (1)
System\Windows\Forms\Design\BaseContextMenuStripTests.cs (1)
16
Font expectedFont = new
Font
("Arial", 12.0f);
System.Windows.Forms.Tests (151)
CheckedListBoxTests.cs (1)
408
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)
1446
using Font font =
new
("Arial", 10);
1522
using Font font =
new
("Arial", 10);
System\Windows\Forms\ButtonTests.cs (2)
689
using Font font =
new
("Arial", 100f);
719
using Font font1 =
new
("Arial", 8.25f);
System\Windows\Forms\ComboBoxTests.cs (1)
1017
using Font font1 =
new
("Arial", 8.25f);
System\Windows\Forms\ComponentModel\Com2Interop\COM2FontConverterTests.cs (1)
77
using Font newFont =
new
(font.Name, 20.0f);
System\Windows\Forms\ContainerControlTests.cs (1)
460
using Font font1 =
new
("Arial", 8.25f);
System\Windows\Forms\ControlTests.ControlCollection.cs (8)
649
Font font =
new
("Arial", 8.25f);
799
Font font =
new
("Arial", 8.25f);
952
Font font =
new
("Arial", 8.25f);
1025
Font font =
new
("Arial", 8.25f);
2352
Font font =
new
("Arial", 8.25f);
2496
Font font =
new
("Arial", 8.25f);
2628
Font font =
new
("Arial", 8.25f);
2692
Font font =
new
("Arial", 8.25f);
System\Windows\Forms\ControlTests.Handlers.cs (3)
1784
using Font childFont1 =
new
("Arial", 1);
1785
using Font childFont2 =
new
("Arial", 2);
4488
Font font =
new
("Arial", 8.25f);
System\Windows\Forms\ControlTests.Methods.cs (1)
6438
using Font font =
new
("Arial", 8.25f);
System\Windows\Forms\ControlTests.Properties.cs (18)
4797
using Font font1 =
new
("Arial", 8.25f);
4798
using Font font2 =
new
("Arial", 8.5f);
4817
using Font font1 =
new
("Arial", 8.25f);
4818
using Font font2 =
new
("Arial", 8.5f);
4855
Font font =
new
("Arial", 8.25f);
4882
Font font =
new
("Arial", 8.25f);
4894
Font = new
Font
("Arial", 1)
4915
Font = new
Font
("Arial", 1)
4934
yield return new object[] { userPaint, new
Font
("Arial", 8.25f), 1 };
4977
yield return new object[] { userPaint, new
Font
("Arial", 8.25f) };
4988
Font = new
Font
("Arial", 1)
5033
using Font font1 =
new
("Arial", 8.25f);
5096
using Font font1 =
new
("Arial", 8.25f);
5149
using Font childFont1 =
new
("Arial", 1);
5150
using Font childFont2 =
new
("Arial", 1);
5189
using Font font1 =
new
("Arial", 8.25f);
5246
using Font font =
new
("Arial", 8.25f);
5271
using Font font =
new
("Arial", 8.25f);
System\Windows\Forms\DataGridViewRowTests.cs (1)
2022
using Font font =
new
("Times New Roman", 12);
System\Windows\Forms\DataGridViewTests.cs (2)
3507
using Font font1 =
new
("Arial", 12);
3508
using Font font2 =
new
("Times New Roman", 14);
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (4)
548
using Font font =
new
("Arial", 8.25f);
735
using Font oldFont =
new
("Arial", 8.25f);
757
using Font font =
new
("Arial", 8.25f);
945
using Font oldFont =
new
("Arial", 8.25f);
System\Windows\Forms\DateTimePickerTests.cs (2)
284
using (Font expectedFont =
new
("Arial", 8.25f))
290
using (Font differentFont =
new
("Times New Roman", 10f))
System\Windows\Forms\FontCacheTests.cs (1)
16
fonts[i] = new
Font
("Arial", i + 6);
System\Windows\Forms\FontDialogTests.cs (10)
229
using Font font =
new
("Arial", 8.25f);
241
using Font font =
new
("Arial", 8.25f);
259
using Font font =
new
("Arial", 8.25f);
277
using Font font =
new
("Arial", 8.25f);
291
Font font =
new
("Arial", 8.25f);
314
using Font font =
new
("Arial", 8.25f);
335
using Font font =
new
("Arial", 8.25f);
352
using Font font =
new
("Arial", 8.25f);
583
using Font font =
new
("Arial", 8.25f);
697
using Font font =
new
("Arial", 8.25f);
System\Windows\Forms\GroupBoxTests.cs (2)
576
using Font font =
new
("Arial", 8.25f);
589
using Font font =
new
("Arial", 8.25f);
System\Windows\Forms\ListBoxTests.cs (6)
1045
yield return new object[] { integralHeight, new
Font
("Arial", 8.25f) };
1105
yield return new object[] { true, new
Font
("Arial", 8.25f), 1, 1 };
1106
yield return new object[] { false, new
Font
("Arial", 8.25f), 1, 2 };
1151
yield return new object[] { true, new
Font
("Arial", 8.25f), 1, 1 };
1152
yield return new object[] { false, new
Font
("Arial", 8.25f), 2, 3 };
1210
using Font font1 =
new
("Arial", 8.25f);
System\Windows\Forms\PictureBoxTests.cs (1)
500
using Font font1 =
new
("Arial", 8.25f);
System\Windows\Forms\ProgressBarTests.cs (1)
505
using Font font1 =
new
("Arial", 8.25f);
System\Windows\Forms\RichTextBoxTests.cs (11)
1372
using Font oldValue =
new
("Arial", 1);
1394
using Font oldValue =
new
("Arial", 1);
1417
yield return new object[] { userPaint, new
Font
("Arial", 8.25f), 1 };
1497
yield return new object[] { userPaint, new
Font
("Arial", 8.25f) };
1506
using Font oldValue =
new
("Arial", 1);
1544
using Font oldValue =
new
("Arial", 1);
1647
using Font font1 =
new
("Arial", 8.25f);
4822
using Font value = hasStyle ? new Font(fontName, fontSize, fontStyle, units, gdiCharSet) : new
Font
(fontName, fontSize);
4849
using Font value = hasStyle ? new Font(fontName, fontSize, fontStyle, units, gdiCharSet) : new
Font
(fontName, fontSize);
4886
yield return new object[] { new
Font
("Arial", 8.25f) };
4915
yield return new object[] { new
Font
("Arial", 8.25f), 165, 0 };
System\Windows\Forms\ScrollBarTests.cs (1)
513
using Font font1 =
new
("Arial", 8.25f);
System\Windows\Forms\SplitterTests.cs (1)
765
using Font font1 =
new
("Arial", 8.25f);
System\Windows\Forms\ToolStripButtonTests.cs (3)
1273
using Font font =
new
("Arial", 8.25f);
1364
using Font font =
new
("Arial", 8.25f);
1463
using Font font =
new
("Arial", 8.25f);
System\Windows\Forms\ToolStripControlHostTests.cs (5)
615
using Font value =
new
("Arial", 8.25f);
958
yield return new object[] { displayStyle, new
Font
("Arial", 8.25f) };
991
using Font font =
new
("Arial", 8.25f);
1003
using Font font =
new
("Arial", 8.25f);
1043
using Font font =
new
("Arial", 8.25f);
System\Windows\Forms\ToolStripDropDownTests.cs (9)
1483
using Font font1 =
new
("Arial", 8.25f);
1484
using Font font2 =
new
("Arial", 8.5f);
1504
using Font font1 =
new
("Arial", 8.25f);
1505
using Font font2 =
new
("Arial", 8.5f);
1555
using Font font1 =
new
("Arial", 8.25f);
1602
using Font font1 =
new
("Arial", 8.25f);
1643
using Font childFont1 =
new
("Arial", 1);
1644
using Font childFont2 =
new
("Arial", 1);
1667
using Font font1 =
new
("Arial", 8.25f);
System\Windows\Forms\ToolStripItemTests.cs (15)
2932
using Font font =
new
("Arial", 8.25f);
2950
using Font font =
new
("Arial", 8.25f);
2967
yield return new object[] { displayStyle, new
Font
("Arial", 8.25f) };
2995
yield return new object[] { ToolStripItemDisplayStyle.None, new
Font
("Arial", 8.25f), 0 };
2996
yield return new object[] { ToolStripItemDisplayStyle.Text, new
Font
("Arial", 8.25f), 1 };
2997
yield return new object[] { ToolStripItemDisplayStyle.Image, new
Font
("Arial", 8.25f), 0 };
2998
yield return new object[] { ToolStripItemDisplayStyle.ImageAndText, new
Font
("Arial", 8.25f), 1 };
3182
using Font font =
new
("Arial", 8.25f);
3211
using Font font =
new
("Arial", 8.25f);
12263
item.Font = new
Font
("Arial", 8.25f);
12301
item.Font = new
Font
("Arial", 8.25f);
12362
item.Font = new
Font
("Arial", 8.25f);
12404
item.Font = new
Font
("Arial", 8.25f);
12454
item.Font = new
Font
("Arial", 8.25f);
14117
using Font font =
new
("Arial", 8.25f);
System\Windows\Forms\ToolStripLabelTests.cs (3)
172
accessor._linkFont = new
Font
("Arial", 10);
185
accessor._linkFont = new
Font
("Arial", 10);
188
_toolStripLabel.Font = new
Font
("Times New Roman", 12);
System\Windows\Forms\ToolStripMenuItemTests.cs (1)
286
Font = new
Font
("Arial", 12),
System\Windows\Forms\ToolStripSeparatorTests.cs (1)
312
yield return new object[] { displayStyle, new
Font
("Arial", 8.25f) };
System\Windows\Forms\ToolStripTests.cs (13)
1399
using Font font1 =
new
("Arial", 8.25f);
1400
using Font font2 =
new
("Arial", 8.5f);
1420
using Font font1 =
new
("Arial", 8.25f);
1421
using Font font2 =
new
("Arial", 8.5f);
1471
using Font font1 =
new
("Arial", 8.25f);
1518
using Font font1 =
new
("Arial", 8.25f);
1559
using Font childFont1 =
new
("Arial", 1);
1560
using Font childFont2 =
new
("Arial", 1);
1583
using Font font1 =
new
("Arial", 8.25f);
1625
using Font font =
new
("Microsoft Sans Serif", 8.25f);
1645
using Font font =
new
("Microsoft Sans Serif", 8.25f);
5309
using Font childFont1 =
new
("Arial", 1);
5310
using Font childFont2 =
new
("Arial", 2);
System\Windows\Forms\ToolStripTextBoxTests.cs (1)
188
_toolStripTextBox.Font = new
Font
("Arial", 8.25f);
System\Windows\Forms\TreeNodeTests.cs (5)
2833
yield return new object[] { new
Font
("Arial", 8.25f), 1 };
2871
using Font oldValue =
new
("Arial", 1);
2890
using Font oldValue =
new
("Arial", 1);
2910
yield return new object[] { new
Font
("Arial", 8.25f), 1 };
2918
using Font oldValue =
new
("Arial", 1);
Text\FontMetrics.cs (5)
18
using Font font =
new
(family, size);
37
using Font font =
new
(family, size);
58
using Font font =
new
(family, size);
76
using Font font =
new
(family, size);
133
using Font font =
new
(family, size);
TextBoxBaseTests.cs (8)
910
using Font oldValue =
new
("Arial", 1);
932
using Font oldValue =
new
("Arial", 1);
955
yield return new object[] { userPaint, new
Font
("Arial", 8.25f), 1 };
1035
yield return new object[] { userPaint, new
Font
("Arial", 8.25f) };
1044
using Font oldValue =
new
("Arial", 1);
1082
using Font oldValue =
new
("Arial", 1);
1131
using Font font1 =
new
("Arial", 8.25f);
1278
using Font font =
new
("Arial", 8.25f);
TrackBarTests.cs (1)
654
using Font font1 =
new
("Arial", 8.25f);
WinFormsControlsTest (2)
DragDrop.Designer.cs (2)
86
textBox.Font = new
Font
("Segoe UI", 14.25F);
97
richTextBox.Font = new
Font
("Segoe UI", 14.25F);