70 references to Regular
System.Drawing.Common.Tests (35)
System\Drawing\FontConverterTests.cs (17)
100Font 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)
165yield return new object[] { FontStyle.Regular }; 168yield return new object[] { FontStyle.Regular - 1 };
System\Drawing\FontTests.cs (16)
65VerifyFont(font, fontFamily.Name, emSize, FontStyle.Regular, GraphicsUnit.Point, 1, false); 80VerifyFont(font, fontFamily.Name, emSize, FontStyle.Regular, GraphicsUnit.Point, 1, false); 92yield return new object[] { FontFamily.GenericSansSerif, 3, FontStyle.Regular }; 147VerifyFont(font, fontFamily.Name, emSize, FontStyle.Regular, unit, 1, false); 162VerifyFont(font, fontFamily.Name, emSize, FontStyle.Regular, unit, 1, false); 174yield return new object[] { FontFamily.GenericSansSerif, 3, FontStyle.Regular, GraphicsUnit.Millimeter }; 216yield return new object[] { FontFamily.GenericSansSerif, 3, FontStyle.Regular, GraphicsUnit.Millimeter, 255 }; 258yield return new object[] { FontFamily.GenericSansSerif, 3, FontStyle.Regular, GraphicsUnit.Millimeter, 255, true }; 308Assert.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)
3764FontStyle style = FontStyle.Regular;
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (1)
2181FontStyle style = FontStyle.Regular;
System.Windows.Forms.Design (1)
System\Drawing\Design\FontNameEditor.cs (1)
17FontStyle.Regular,
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 (19)
System\Windows\Forms\DataGridViewTests.cs (2)
2320using Font formFont1 = new("Times New Roman", 12F, FontStyle.Regular); 2326using Font customFont1 = new("Tahoma", 8.25F, FontStyle.Regular);
System\Windows\Forms\DataGridViewTests.Rendering.cs (2)
104using Font formFont1 = new("Times New Roman", 12F, FontStyle.Regular); 111using Font customCellStyleFont = new("Tahoma", 8.25F, FontStyle.Regular);
System\Windows\Forms\RichTextBoxTests.cs (15)
1581yield return new object[] { "Arial", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 1, 165, 0 }; 1586yield 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 }; 4704yield return new object[] { 0, 0, 0, Array.Empty<char>(), string.Empty, 13, FontStyle.Regular }; 4705yield return new object[] { 0, 0, 0, arial, "Arial", 13, FontStyle.Regular }; 4706yield return new object[] { 0, 0, 0, new char[] { 'A', 'r', 'i', 'a', 'l', '\0', 'm' }, "Arial", 13, FontStyle.Regular }; 4707yield return new object[] { 0, 0, 0, new char[] { 'N', 'r', 'i', 'a', 'l', '\0', 'm' }, "Nrial", 13, FontStyle.Regular }; 4709yield return new object[] { 0, 0, 200, arial, "Arial", 13, FontStyle.Regular }; 4710yield return new object[] { CFM_MASK.CFM_SIZE, 0, 200, arial, "Arial", 10, FontStyle.Regular }; 4711yield return new object[] { CFM_MASK.CFM_SIZE, 0, 250, arial, "Arial", 12.5f, FontStyle.Regular }; 4712yield return new object[] { CFM_MASK.CFM_SIZE | CFM_MASK.CFM_ALLCAPS, 0, 250, arial, "Arial", 12.5f, FontStyle.Regular }; 4726yield return new object[] { CFM_MASK.CFM_ALLCAPS, CFE_EFFECTS.CFE_BOLD, 0, arial, "Arial", 13, FontStyle.Regular }; 4727yield return new object[] { CFM_MASK.CFM_ALLCAPS, CFE_EFFECTS.CFE_BOLD | CFE_EFFECTS.CFE_ALLCAPS, 0, arial, "Arial", 13, FontStyle.Regular }; 4814yield return new object[] { "Arial", 8.25f, false, FontStyle.Regular, 0, 0, 1 }; 4815yield return new object[] { "Arial", 8.25f, true, FontStyle.Bold | FontStyle.Italic | FontStyle.Regular | FontStyle.Strikeout | FontStyle.Underline, GraphicsUnit.Point, 10, 1 }; 4920yield 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)
163style = SD.FontStyle.Regular; 345style = SD.FontStyle.Regular;
WinFormsControlsTest (6)
DataGridViewInVirtualModeTest.Designer.cs (1)
87this.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
DataGridViewTest.cs (3)
13new Font("Tahoma", 12F, FontStyle.Regular), 16new Font("Microsoft Sans Serif", 11F, FontStyle.Regular) 93Font = new Font("Tahoma", (float)numericUpDown1.Value, FontStyle.Regular);
DataGridViewTest.Designer.cs (1)
216this.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
MultipleControls.Designer.cs (1)
109this.richTextBox1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);