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