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