55 references to Style
PresentationUI (1)
MS\Internal\Documents\SigningDialog.cs (1)
264_signerlabel.Font = new Font(System.Drawing.SystemFonts.DialogFont, System.Drawing.SystemFonts.DialogFont.Style | FontStyle.Bold);
System.Drawing.Common.Tests (7)
System\Drawing\FontConverterTests.cs (3)
55Assert.Equal(expectedFontStyle, font.Style); 126Assert.Equal(font.Style, newFont.Style);
System\Drawing\FontTests.cs (4)
319Assert.Equal(FontStyle.Italic, copy.Style); 401Assert.Equal(font.Style, clone.Style); 861Assert.Equal(expectedStyle, font.Style);
System.Windows.Forms (12)
System\Windows\Forms\ActiveX\AxHost.cs (1)
3712: new(f.Name, f.SizeInPoints, f.Style, GraphicsUnit.Point, f.GdiCharSet, f.GdiVerticalFont);
System\Windows\Forms\Controls\Labels\LinkLabel.cs (1)
530using Font alwaysUnderlined = new Font(Font, Font.Style | FontStyle.Underline);
System\Windows\Forms\Controls\Labels\LinkUtilities.cs (3)
203FontStyle style = f.Style; 227FontStyle hoverStyle = f.Style; 239FontStyle linkStyle = f.Style;
System\Windows\Forms\Dialogs\CommonDialogs\FontDialog.cs (2)
144result = new Font(result.FontFamily, MinSize, result.Style, GraphicsUnit.Point); 149result = new Font(result.FontFamily, MaxSize, result.Style, GraphicsUnit.Point);
System\Windows\Forms\Rendering\ControlPaint.cs (1)
2065font.Style,
System\Windows\Forms\Rendering\FontCache.Data.cs (4)
94lfWeight = (int)((font.Style & FontStyle.Bold) == FontStyle.Bold ? FW.BOLD : FW.NORMAL), 95lfItalic = (font.Style & FontStyle.Italic) == FontStyle.Italic ? True : False, 96lfUnderline = (font.Style & FontStyle.Underline) == FontStyle.Underline ? True : False, 97lfStrikeOut = (font.Style & FontStyle.Strikeout) == FontStyle.Strikeout ? True : False,
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.Primitives (1)
System\Windows\Forms\FontExtensions.cs (1)
25templateFont.Style,
System.Windows.Forms.Primitives.Tests (2)
Interop\User32\SystemParametersInfoWTests.cs (2)
38Assert.Equal(expected.Style, actual.Style);
System.Windows.Forms.Tests (28)
System\Windows\Forms\ApplicationTests.cs (2)
644Assert.Equal(expected.Style, actual.Style);
System\Windows\Forms\AxHostTests.cs (12)
1462Assert.Equal(font.Style, result.Style); 1468Assert.Equal(font.Style, result.Style); 1491Assert.Equal(font.Style, result.Style); 1497Assert.Equal(font.Style, result.Style); 1537Assert.Equal(font.Style, result.Style); 1558Assert.Equal(font.Style, result.Style);
System\Windows\Forms\FontDialogTests.cs (4)
252Assert.Equal(font.Style, result.Style); 270Assert.Equal(font.Style, result.Style);
System\Windows\Forms\GroupBoxTests.cs (1)
604using Font newFont = new(originalFont.FontFamily, originalFont.Size + 5, originalFont.Style);
System\Windows\Forms\RichTextBoxTests.cs (9)
4757Assert.Equal(expectedStyle, font.Style); 4831Assert.Equal(value?.Style, result1.Style); 4840Assert.Equal(value?.Style, result2.Style); 4864Assert.Equal(value.Style, result1.Style); 4876Assert.Equal(value.Style, result2.Style);
WindowsFormsIntegration (1)
System\Windows\Integration\WindowsFormsHostPropertyMap.cs (1)
142adapter.Font = new SD.Font(familySource, adapter.Font.Size, adapter.Font.Style);
WinFormsControlsTest (2)
MenuStripAndCheckedListBox.cs (1)
39menuStrip1.Font = new Font(f.FontFamily, f.Size * factor, f.Style);
ScalingBeforeChanges.cs (1)
100Font = new Font(Font.FontFamily, Font.Size * factorY, Font.Style);