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