117 references to FontStyle
PresentationUI (3)
MS\Internal\Documents\RMEnrollmentPage1.Designer.cs (1)
150_instructionlabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
MS\Internal\Documents\SignatureSummaryDialog.cs (1)
228Font columnHeaderFont = new System.Drawing.Font(Font, System.Drawing.FontStyle.Bold);
MS\Internal\Documents\SigningDialog.cs (1)
261_signerlabel.Font = new Font(System.Drawing.SystemFonts.DialogFont, System.Drawing.SystemFonts.DialogFont.Style | FontStyle.Bold);
System.Drawing (1)
System.Drawing.cs (1)
59[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Drawing.FontStyle))]
System.Drawing.Common (52)
System\Drawing\Font.cs (26)
24private FontStyle _fontStyle; 43public FontStyle Style => _fontStyle; 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; 147FontStyle style = (FontStyle)info.GetValue("Style", typeof(FontStyle))!; // Do not rename (binary serialization) 362/// and <see cref='FontStyle'/>. 364public Font(Font prototype, FontStyle newStyle) 374public Font(FontFamily family, float emSize, FontStyle style, GraphicsUnit unit) 382public Font(FontFamily family, float emSize, FontStyle style, GraphicsUnit unit, byte gdiCharSet) 390public Font(FontFamily family, float emSize, FontStyle style, GraphicsUnit unit, byte gdiCharSet, bool gdiVerticalFont) 398public Font(string familyName, float emSize, FontStyle style, GraphicsUnit unit, byte gdiCharSet) 406public Font(string familyName, float emSize, FontStyle style, GraphicsUnit unit, byte gdiCharSet, bool gdiVerticalFont) 419public Font(FontFamily family, float emSize, FontStyle style) 429Initialize(family, emSize, FontStyle.Regular, unit, (byte)FONT_CHARSET.DEFAULT_CHARSET, false); 437Initialize(family, emSize, FontStyle.Regular, GraphicsUnit.Point, (byte)FONT_CHARSET.DEFAULT_CHARSET, false); 443public Font(string familyName, float emSize, FontStyle style, GraphicsUnit unit) 451public Font(string familyName, float emSize, FontStyle style) 461Initialize(familyName, emSize, FontStyle.Regular, unit, (byte)FONT_CHARSET.DEFAULT_CHARSET, IsVerticalName(familyName)); 469Initialize(familyName, emSize, FontStyle.Regular, GraphicsUnit.Point, (byte)FONT_CHARSET.DEFAULT_CHARSET, IsVerticalName(familyName)); 483FontStyle style; 495private void Initialize(string familyName, float emSize, FontStyle style, GraphicsUnit unit, byte gdiCharSet, bool gdiVerticalFont) 511private void Initialize(FontFamily family, float emSize, FontStyle style, GraphicsUnit unit, byte gdiCharSet, bool gdiVerticalFont)
System\Drawing\FontConverter.cs (19)
75if (font.Style != FontStyle.Regular) 102else if (font.Style != FontStyle.Regular) 118types[2] = typeof(FontStyle); 172FontStyle fontStyle = FontStyle.Regular; 239fontStyle |= Enum.Parse<FontStyle>(styleText, true); 242FontStyle validBits = FontStyle.Regular | FontStyle.Bold | FontStyle.Italic | FontStyle.Underline | FontStyle.Strikeout; 245throw new InvalidEnumArgumentException(nameof(style), (int)fontStyle, typeof(FontStyle)); 321FontStyle style = FontStyle.Regular; 343style |= FontStyle.Bold; 349style |= FontStyle.Italic; 355style |= FontStyle.Strikeout; 361style |= FontStyle.Underline;
System\Drawing\FontFamily.cs (7)
286/// Indicates whether the specified <see cref='FontStyle'/> is available. 288public bool IsStyleAvailable(FontStyle style) 299public int GetEmHeight(FontStyle style) 310public int GetCellAscent(FontStyle style) 321public int GetCellDescent(FontStyle style) 331/// specified <see cref='FontStyle'/>. 333public int GetLineSpacing(FontStyle style)
System.Windows.Forms (37)
System\Windows\Forms\ActiveX\AxHost.cs (7)
3761FontStyle style = FontStyle.Regular; 3767style |= FontStyle.Bold; 3772style |= FontStyle.Italic; 3777style |= FontStyle.Underline; 3782style |= FontStyle.Strikeout; 3787style |= FontStyle.Bold;
System\Windows\Forms\Controls\Labels\FocusableLabel.cs (2)
42Font = new Font(Font, FontStyle.Underline); 52Font = new Font(Font, FontStyle.Regular);
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 (9)
202FontStyle style = f.Style; 205style |= FontStyle.Underline; 209style &= ~FontStyle.Underline; 217FontStyle hoverStyle = f.Style; 220hoverStyle |= FontStyle.Underline; 224hoverStyle &= ~FontStyle.Underline; 229FontStyle linkStyle = f.Style; 232linkStyle |= FontStyle.Underline; 236linkStyle &= ~FontStyle.Underline;
System\Windows\Forms\Controls\ListView\ListView.cs (2)
2617_odCacheFont = new Font(_odCacheFont, FontStyle.Bold); 2804subItemFont = new Font(item.SubItems[0].Font, FontStyle.Underline);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\HelpPane.cs (1)
232_titleLabel.Font = new(Font, FontStyle.Bold);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
1327public Font GetBoldFont() => _boldFont ??= new Font(Font, FontStyle.Bold);
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (6)
2172FontStyle style = FontStyle.Regular; 2175style |= FontStyle.Bold; 2180style |= FontStyle.Italic; 2185style |= FontStyle.Strikeout; 2190style |= FontStyle.Underline;
System\Windows\Forms\Rendering\FontCache.Data.cs (8)
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 (13)
System\ComponentModel\Design\DesignerActionPanel.HeaderLine.cs (1)
16protected override Font GetFont() => new(ActionPanel.Font, FontStyle.Bold);
System\ComponentModel\Design\DesignerActionPanel.PanelHeaderLine.cs (1)
94_titleLabel.Font = new Font(ActionPanel.Font, FontStyle.Bold);
System\Drawing\Design\FontNameEditor.cs (8)
15private static readonly FontStyle[] s_fontStyles = 17FontStyle.Regular, 18FontStyle.Italic, 19FontStyle.Bold, 20FontStyle.Bold | FontStyle.Italic 46foreach (var fontStyle in s_fontStyles) 69private static void DrawFontSample(PaintValueEventArgs e, FontFamily fontFamily, FontStyle fontStyle)
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (1)
334label.Font = new Font(label.Font, FontStyle.Bold);
System\Windows\Forms\Design\TabOrder.cs (1)
49_tabFont = new Font(_tabFont, FontStyle.Bold);
System\Windows\Forms\Design\ToolStripCollectionEditor.ToolStripItemEditorForm.cs (1)
864using Font boldFont = new(_selectedItemName.Font, FontStyle.Bold);
WindowsFormsIntegration (11)
System\Windows\Integration\WindowsFormsHostPropertyMap.cs (11)
158SD.FontStyle style; 161style = SD.FontStyle.Regular; 165style = SD.FontStyle.Italic; 169style |= SD.FontStyle.Bold; 187SD.FontStyle style = CurrentFontStyle; 190style |= SD.FontStyle.Bold; 332private SD.FontStyle CurrentFontStyle 336SD.FontStyle style; 340style = SD.FontStyle.Regular; 344style = SD.FontStyle.Italic; 349style |= SD.FontStyle.Bold;