70 references to Regular
System.Drawing.Common.Tests (35)
System\Drawing\FontConverterTests.cs (17)
100
Font font = new($"Courier New", 8.25f, FontStyle.
Regular
, GraphicsUnit.Point);
140
{ new Font("Arial", 12.0f, FontStyle.
Regular
), 2 },
142
{ new Font("Courier", 1.0f, FontStyle.
Regular
, GraphicsUnit.Point), 2 },
143
{ new Font("Courier", 1.0f, FontStyle.
Regular
, GraphicsUnit.Inch), 4 },
144
{ new Font("Courier", 1.0f, FontStyle.
Regular
, GraphicsUnit.Pixel, gdiCharSet: 2 /* SYMBOL_CHARSET */), 5 },
145
{ new Font("Courier", 1.0f, FontStyle.
Regular
, GraphicsUnit.Point, gdiCharSet: 1 /* DEFAULT_CHARSET */), 2 },
146
{ new Font("Courier", 1.0f, FontStyle.
Regular
, GraphicsUnit.Pixel, gdiCharSet: 1 /* DEFAULT_CHARSET */, gdiVerticalFont: true), 6 },
154
{ $"Courier New", "Courier New", 8.25f, GraphicsUnit.Point, FontStyle.
Regular
},
155
{ $"Courier New{Separator} 11", "Courier New", 11f, GraphicsUnit.Point, FontStyle.
Regular
},
156
{ $"Arial{Separator} 11px", "Arial", 11f, GraphicsUnit.Pixel, FontStyle.
Regular
},
157
{ $"Courier New{Separator} 11 px", "Courier New", 11f, GraphicsUnit.Pixel, FontStyle.
Regular
},
158
{ $"Courier New{Separator} 11 px{Separator} style=Regular", "Courier New", 11f, GraphicsUnit.Pixel, FontStyle.
Regular
},
161
{ $"Courier New{Separator} 11 px{Separator} style=Regular, Italic", "Courier New", 11f, GraphicsUnit.Pixel, FontStyle.
Regular
| FontStyle.Italic },
164
{ $"11px", "Microsoft Sans Serif", 8.25f, GraphicsUnit.Point, FontStyle.
Regular
},
165
{ $"Style=Bold", "Microsoft Sans Serif", 8.25f, GraphicsUnit.Point, FontStyle.
Regular
},
167
{ $"Arial{Separator} 10{Separator}", "Arial", 10f, GraphicsUnit.Point, FontStyle.
Regular
},
168
{ $"Arial{Separator}", "Arial", 8.25f, GraphicsUnit.Point, FontStyle.
Regular
},
System\Drawing\FontFamilyTests.cs (2)
165
yield return new object[] { FontStyle.
Regular
};
168
yield return new object[] { FontStyle.
Regular
- 1 };
System\Drawing\FontTests.cs (16)
65
VerifyFont(font, fontFamily.Name, emSize, FontStyle.
Regular
, GraphicsUnit.Point, 1, false);
80
VerifyFont(font, fontFamily.Name, emSize, FontStyle.
Regular
, GraphicsUnit.Point, 1, false);
92
yield return new object[] { FontFamily.GenericSansSerif, 3, FontStyle.
Regular
};
147
VerifyFont(font, fontFamily.Name, emSize, FontStyle.
Regular
, unit, 1, false);
162
VerifyFont(font, fontFamily.Name, emSize, FontStyle.
Regular
, unit, 1, false);
174
yield return new object[] { FontFamily.GenericSansSerif, 3, FontStyle.
Regular
, GraphicsUnit.Millimeter };
216
yield return new object[] { FontFamily.GenericSansSerif, 3, FontStyle.
Regular
, GraphicsUnit.Millimeter, 255 };
258
yield return new object[] { FontFamily.GenericSansSerif, 3, FontStyle.
Regular
, GraphicsUnit.Millimeter, 255, true };
308
Assert.Throws<NullReferenceException>(() => new Font(null, FontStyle.
Regular
));
558
[InlineData(FontStyle.
Regular
, -2147483098, 0)]
559
[InlineData(FontStyle.
Regular
, -1, 0)]
560
[InlineData(FontStyle.
Regular
, 0, 0)]
561
[InlineData(FontStyle.
Regular
, 300, 0)]
562
[InlineData(FontStyle.
Regular
, 400, 0)]
700
[InlineData(FontStyle.
Regular
, 0, false, "", 400)]
701
[InlineData(FontStyle.
Regular
, 10, false, "", 400)]
System.Windows.Forms (2)
System\Windows\Forms\ActiveX\AxHost.cs (1)
3764
FontStyle style = FontStyle.
Regular
;
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (1)
2181
FontStyle style = FontStyle.
Regular
;
System.Windows.Forms.Design (1)
System\Drawing\Design\FontNameEditor.cs (1)
17
FontStyle.
Regular
,
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 (19)
System\Windows\Forms\DataGridViewTests.cs (2)
2320
using Font formFont1 = new("Times New Roman", 12F, FontStyle.
Regular
);
2326
using Font customFont1 = new("Tahoma", 8.25F, FontStyle.
Regular
);
System\Windows\Forms\DataGridViewTests.Rendering.cs (2)
104
using Font formFont1 = new("Times New Roman", 12F, FontStyle.
Regular
);
111
using Font customCellStyleFont = new("Tahoma", 8.25F, FontStyle.
Regular
);
System\Windows\Forms\RichTextBoxTests.cs (15)
1581
yield return new object[] { "Arial", 8.25f, FontStyle.
Regular
, GraphicsUnit.Point, 1, 165, 0 };
1586
yield return new object[] { "Arial", 8.25f, FontStyle.Bold | FontStyle.Italic | FontStyle.
Regular
| FontStyle.Strikeout | FontStyle.Underline, GraphicsUnit.Point, 10, 165, CFE_EFFECTS.CFE_BOLD | CFE_EFFECTS.CFE_ITALIC | CFE_EFFECTS.CFE_UNDERLINE | CFE_EFFECTS.CFE_STRIKEOUT };
4704
yield return new object[] { 0, 0, 0, Array.Empty<char>(), string.Empty, 13, FontStyle.
Regular
};
4705
yield return new object[] { 0, 0, 0, arial, "Arial", 13, FontStyle.
Regular
};
4706
yield return new object[] { 0, 0, 0, new char[] { 'A', 'r', 'i', 'a', 'l', '\0', 'm' }, "Arial", 13, FontStyle.
Regular
};
4707
yield return new object[] { 0, 0, 0, new char[] { 'N', 'r', 'i', 'a', 'l', '\0', 'm' }, "Nrial", 13, FontStyle.
Regular
};
4709
yield return new object[] { 0, 0, 200, arial, "Arial", 13, FontStyle.
Regular
};
4710
yield return new object[] { CFM_MASK.CFM_SIZE, 0, 200, arial, "Arial", 10, FontStyle.
Regular
};
4711
yield return new object[] { CFM_MASK.CFM_SIZE, 0, 250, arial, "Arial", 12.5f, FontStyle.
Regular
};
4712
yield return new object[] { CFM_MASK.CFM_SIZE | CFM_MASK.CFM_ALLCAPS, 0, 250, arial, "Arial", 12.5f, FontStyle.
Regular
};
4726
yield return new object[] { CFM_MASK.CFM_ALLCAPS, CFE_EFFECTS.CFE_BOLD, 0, arial, "Arial", 13, FontStyle.
Regular
};
4727
yield return new object[] { CFM_MASK.CFM_ALLCAPS, CFE_EFFECTS.CFE_BOLD | CFE_EFFECTS.CFE_ALLCAPS, 0, arial, "Arial", 13, FontStyle.
Regular
};
4814
yield return new object[] { "Arial", 8.25f, false, FontStyle.
Regular
, 0, 0, 1 };
4815
yield return new object[] { "Arial", 8.25f, true, FontStyle.Bold | FontStyle.Italic | FontStyle.
Regular
| FontStyle.Strikeout | FontStyle.Underline, GraphicsUnit.Point, 10, 1 };
4920
yield return new object[] { new Font("Arial", 8.25f, FontStyle.Bold | FontStyle.Italic | FontStyle.
Regular
| FontStyle.Strikeout | FontStyle.Underline, GraphicsUnit.Point, 10), 165, CFE_EFFECTS.CFE_BOLD | CFE_EFFECTS.CFE_ITALIC | CFE_EFFECTS.CFE_UNDERLINE | CFE_EFFECTS.CFE_STRIKEOUT };
WindowsFormsIntegration (2)
System\Windows\Integration\WindowsFormsHostPropertyMap.cs (2)
163
style = SD.FontStyle.
Regular
;
345
style = SD.FontStyle.
Regular
;
WinFormsControlsTest (6)
DataGridViewInVirtualModeTest.Designer.cs (1)
87
this.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.
Regular
, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
DataGridViewTest.cs (3)
13
new Font("Tahoma", 12F, FontStyle.
Regular
),
16
new Font("Microsoft Sans Serif", 11F, FontStyle.
Regular
)
93
Font = new Font("Tahoma", (float)numericUpDown1.Value, FontStyle.
Regular
);
DataGridViewTest.Designer.cs (1)
216
this.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.
Regular
, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
MultipleControls.Designer.cs (1)
109
this.richTextBox1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.
Regular
, System.Drawing.GraphicsUnit.Point);