31 references to Style
PresentationUI (1)
MS\Internal\Documents\SigningDialog.cs (1)
261_signerlabel.Font = new Font(System.Drawing.SystemFonts.DialogFont, System.Drawing.SystemFonts.DialogFont.Style | FontStyle.Bold);
System.Drawing.Common (15)
System\Drawing\Font.cs (10)
49public bool Bold => (Style & FontStyle.Bold) != 0; 55public bool Italic => (Style & FontStyle.Italic) != 0; 61public bool Strikeout => (Style & FontStyle.Strikeout) != 0; 67public bool Underline => (Style & FontStyle.Underline) != 0; 159si.AddValue("Style", Style); // Do not rename (binary serialization) 247&& font.Style == Style 255public override int GetHashCode() => HashCode.Combine(Name, Style, Size, Unit); 748float emHeightInPixels = lineSpacingInPixels * FontFamily.GetEmHeight(Style) / FontFamily.GetLineSpacing(Style);
System\Drawing\FontConverter.cs (4)
75if (font.Style != FontStyle.Regular) 79sb.AppendLiteral(font.Style.ToString()); 102else if (font.Style != FontStyle.Regular) 117args[2] = font.Style;
System\Drawing\SystemFonts.cs (1)
264return new Font(font.FontFamily, font.SizeInPoints, font.Style, GraphicsUnit.Point, font.GdiCharSet, font.GdiVerticalFont);
System.Windows.Forms (12)
System\Windows\Forms\ActiveX\AxHost.cs (1)
3709: new(f.Name, f.SizeInPoints, f.Style, GraphicsUnit.Point, f.GdiCharSet, f.GdiVerticalFont);
System\Windows\Forms\Controls\Labels\LinkLabel.cs (1)
533using Font alwaysUnderlined = new Font(Font, Font.Style | FontStyle.Underline);
System\Windows\Forms\Controls\Labels\LinkUtilities.cs (3)
202FontStyle style = f.Style; 217FontStyle hoverStyle = f.Style; 229FontStyle 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)
2125font.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,
WindowsFormsIntegration (1)
System\Windows\Integration\WindowsFormsHostPropertyMap.cs (1)
140adapter.Font = new SD.Font(familySource, adapter.Font.Size, adapter.Font.Style);