55 references to Font
System.Drawing.Common.Tests (4)
System\Drawing\FontConverterTests.cs (2)
140{ new Font("Arial", 12.0f, FontStyle.Regular), 2 }, 141{ new Font("Courier", 8.0f, FontStyle.Italic), 3 },
System\Drawing\FontTests.cs (2)
121using Font font = new(fontFamily.Name, emSize, style); 363AssertExtensions.Throws<ArgumentException>("emSize", () => new Font(family.Name, emSize, FontStyle.Italic));
System.Windows.Forms.Design (1)
System\ComponentModel\Design\MultilineStringEditor.MultilineStringEditorUI.cs (1)
305replaceFont = new Font(fallBackFontName, base.Font.Size, base.Font.Style);
System.Windows.Forms.Design.Tests (1)
System\Windows\Forms\Design\BaseContextMenuStripTests.cs (1)
21contextMenuStrip.Font = new Font("Times New Roman", 10.0f, FontStyle.Italic);
System.Windows.Forms.Primitives.Tests (5)
System\Windows\Forms\Automation\UiaTextRangeTests.cs (5)
531using Font font = new("Segoe UI", 9, FontStyle.Regular); 618using Font font = new("Arial", 9f, FontStyle.Regular); 711using Font font = new("Arial", 9f, FontStyle.Regular); 793using Font font = new("Arial", 9f, FontStyle.Regular); 1200using Font font = new("Arial", fontSize, FontStyle.Regular);
System.Windows.Forms.Tests (15)
System\Windows\Forms\DataGridViewTests.cs (5)
2320using Font formFont1 = new("Times New Roman", 12F, FontStyle.Regular); 2326using Font customFont1 = new("Tahoma", 8.25F, FontStyle.Regular); 2327using Font customFont2 = new("Consolas", 14F, FontStyle.Italic); 2328using Font customFont3 = new("Arial", 9F, FontStyle.Bold); 2369using Font formFont2 = new("Arial Black", 10F, FontStyle.Italic);
System\Windows\Forms\DataGridViewTests.Rendering.cs (4)
104using Font formFont1 = new("Times New Roman", 12F, FontStyle.Regular); 111using Font customCellStyleFont = new("Tahoma", 8.25F, FontStyle.Regular); 112using Font customColumnHeaderFont = new("Consolas", 14F, FontStyle.Italic); 113using Font customRowHeaderFont = new("Arial", 9F, FontStyle.Bold);
System\Windows\Forms\RichTextBoxTests.cs (4)
4916yield return new object[] { new Font("Arial", 8.25f, FontStyle.Bold), 165, CFE_EFFECTS.CFE_BOLD }; 4917yield return new object[] { new Font("Arial", 8.25f, FontStyle.Italic), 165, CFE_EFFECTS.CFE_ITALIC }; 4918yield return new object[] { new Font("Arial", 8.25f, FontStyle.Strikeout), 165, CFE_EFFECTS.CFE_STRIKEOUT }; 4919yield return new object[] { new Font("Arial", 8.25f, FontStyle.Underline), 165, CFE_EFFECTS.CFE_UNDERLINE };
System\Windows\Forms\ToolStripLabelTests.cs (2)
173accessor._hoverLinkFont = new Font("Arial", 10, FontStyle.Underline); 186accessor._hoverLinkFont = new Font("Arial", 10, FontStyle.Underline);
WindowsFormsIntegration (4)
System\Windows\Integration\WindowsFormsHostPropertyMap.cs (4)
142adapter.Font = new SD.Font(familySource, adapter.Font.Size, adapter.Font.Style); 173adapter.Font = new SD.Font(CurrentFontFamily, CurrentFontSize, style); 194adapter.Font = new SD.Font(CurrentFontFamily, CurrentFontSize, style); 210adapter.Font = new SD.Font(CurrentFontFamily, (float)pointSize, CurrentFontStyle);
WinFormsControlsTest (25)
ChartControl.cs (1)
40chart4.Series[0].Font = new Font("Trebuchet MS", 8, FontStyle.Bold);
ChartControl.Designer.cs (16)
110chartArea1.AxisX.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); 114chartArea1.AxisY.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); 133legend1.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); 172title1.Font = new System.Drawing.Font("Trebuchet MS", 14.25F, System.Drawing.FontStyle.Bold); 195chartArea2.AxisX.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); 201chartArea2.AxisY.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); 246title2.Font = new System.Drawing.Font("Trebuchet MS", 14.25F, System.Drawing.FontStyle.Bold); 269chartArea3.AxisX.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); 272chartArea3.AxisY.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); 284legend3.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); 308title3.Font = new System.Drawing.Font("Trebuchet MS", 14.25F, System.Drawing.FontStyle.Bold); 329chartArea4.AxisX.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); 336chartArea4.AxisY.LabelStyle.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); 352legend4.Font = new System.Drawing.Font("Trebuchet MS", 8F, System.Drawing.FontStyle.Bold); 365series7.Font = new System.Drawing.Font("Trebuchet MS", 8.25F, System.Drawing.FontStyle.Bold); 402title4.Font = new System.Drawing.Font("Trebuchet MS", 14.25F, System.Drawing.FontStyle.Bold);
DataGridViewTest.cs (5)
13new Font("Tahoma", 12F, FontStyle.Regular), 14new Font("Consolas", 14F, FontStyle.Italic), 15new Font("Arial", 9F, FontStyle.Bold), 16new Font("Microsoft Sans Serif", 11F, FontStyle.Regular) 93Font = new Font("Tahoma", (float)numericUpDown1.Value, FontStyle.Regular);
ErrorProviderTest.Designer.cs (2)
59this.label1.Font = new System.Drawing.Font("Calibri", 12F, FontStyle.Bold); 89this.label2.Font = new System.Drawing.Font("Calibri", 12F, FontStyle.Bold);
ToolStripTests.Designer.cs (1)
138this.toolStrip4.Font=new System.Drawing.Font("Calibri", 12F, System.Drawing.FontStyle.Bold);