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)
228
Font 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)
24
private
FontStyle
_fontStyle;
43
public
FontStyle
Style => _fontStyle;
49
public bool Bold => (Style &
FontStyle
.Bold) != 0;
55
public bool Italic => (Style &
FontStyle
.Italic) != 0;
61
public bool Strikeout => (Style &
FontStyle
.Strikeout) != 0;
67
public bool Underline => (Style &
FontStyle
.Underline) != 0;
147
FontStyle
style = (
FontStyle
)info.GetValue("Style", typeof(
FontStyle
))!; // Do not rename (binary serialization)
362
/// and <see cref='
FontStyle
'/>.
364
public Font(Font prototype,
FontStyle
newStyle)
374
public Font(FontFamily family, float emSize,
FontStyle
style, GraphicsUnit unit)
382
public Font(FontFamily family, float emSize,
FontStyle
style, GraphicsUnit unit, byte gdiCharSet)
390
public Font(FontFamily family, float emSize,
FontStyle
style, GraphicsUnit unit, byte gdiCharSet, bool gdiVerticalFont)
398
public Font(string familyName, float emSize,
FontStyle
style, GraphicsUnit unit, byte gdiCharSet)
406
public Font(string familyName, float emSize,
FontStyle
style, GraphicsUnit unit, byte gdiCharSet, bool gdiVerticalFont)
419
public Font(FontFamily family, float emSize,
FontStyle
style)
429
Initialize(family, emSize,
FontStyle
.Regular, unit, (byte)FONT_CHARSET.DEFAULT_CHARSET, false);
437
Initialize(family, emSize,
FontStyle
.Regular, GraphicsUnit.Point, (byte)FONT_CHARSET.DEFAULT_CHARSET, false);
443
public Font(string familyName, float emSize,
FontStyle
style, GraphicsUnit unit)
451
public Font(string familyName, float emSize,
FontStyle
style)
461
Initialize(familyName, emSize,
FontStyle
.Regular, unit, (byte)FONT_CHARSET.DEFAULT_CHARSET, IsVerticalName(familyName));
469
Initialize(familyName, emSize,
FontStyle
.Regular, GraphicsUnit.Point, (byte)FONT_CHARSET.DEFAULT_CHARSET, IsVerticalName(familyName));
483
FontStyle
style;
495
private void Initialize(string familyName, float emSize,
FontStyle
style, GraphicsUnit unit, byte gdiCharSet, bool gdiVerticalFont)
511
private void Initialize(FontFamily family, float emSize,
FontStyle
style, GraphicsUnit unit, byte gdiCharSet, bool gdiVerticalFont)
System\Drawing\FontConverter.cs (19)
75
if (font.Style !=
FontStyle
.Regular)
102
else if (font.Style !=
FontStyle
.Regular)
118
types[2] = typeof(
FontStyle
);
172
FontStyle
fontStyle =
FontStyle
.Regular;
239
fontStyle |= Enum.Parse<
FontStyle
>(styleText, true);
242
FontStyle
validBits =
FontStyle
.Regular |
FontStyle
.Bold |
FontStyle
.Italic |
FontStyle
.Underline |
FontStyle
.Strikeout;
245
throw new InvalidEnumArgumentException(nameof(style), (int)fontStyle, typeof(
FontStyle
));
321
FontStyle
style =
FontStyle
.Regular;
343
style |=
FontStyle
.Bold;
349
style |=
FontStyle
.Italic;
355
style |=
FontStyle
.Strikeout;
361
style |=
FontStyle
.Underline;
System\Drawing\FontFamily.cs (7)
286
/// Indicates whether the specified <see cref='
FontStyle
'/> is available.
288
public bool IsStyleAvailable(
FontStyle
style)
299
public int GetEmHeight(
FontStyle
style)
310
public int GetCellAscent(
FontStyle
style)
321
public int GetCellDescent(
FontStyle
style)
331
/// specified <see cref='
FontStyle
'/>.
333
public int GetLineSpacing(
FontStyle
style)
System.Windows.Forms (37)
System\Windows\Forms\ActiveX\AxHost.cs (7)
3761
FontStyle
style =
FontStyle
.Regular;
3767
style |=
FontStyle
.Bold;
3772
style |=
FontStyle
.Italic;
3777
style |=
FontStyle
.Underline;
3782
style |=
FontStyle
.Strikeout;
3787
style |=
FontStyle
.Bold;
System\Windows\Forms\Controls\Labels\FocusableLabel.cs (2)
42
Font = new Font(Font,
FontStyle
.Underline);
52
Font = new Font(Font,
FontStyle
.Regular);
System\Windows\Forms\Controls\Labels\LinkLabel.cs (1)
533
using Font alwaysUnderlined = new Font(Font, Font.Style |
FontStyle
.Underline);
System\Windows\Forms\Controls\Labels\LinkUtilities.cs (9)
202
FontStyle
style = f.Style;
205
style |=
FontStyle
.Underline;
209
style &= ~
FontStyle
.Underline;
217
FontStyle
hoverStyle = f.Style;
220
hoverStyle |=
FontStyle
.Underline;
224
hoverStyle &= ~
FontStyle
.Underline;
229
FontStyle
linkStyle = f.Style;
232
linkStyle |=
FontStyle
.Underline;
236
linkStyle &= ~
FontStyle
.Underline;
System\Windows\Forms\Controls\ListView\ListView.cs (2)
2617
_odCacheFont = new Font(_odCacheFont,
FontStyle
.Bold);
2804
subItemFont = 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)
1327
public Font GetBoldFont() => _boldFont ??= new Font(Font,
FontStyle
.Bold);
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (6)
2172
FontStyle
style =
FontStyle
.Regular;
2175
style |=
FontStyle
.Bold;
2180
style |=
FontStyle
.Italic;
2185
style |=
FontStyle
.Strikeout;
2190
style |=
FontStyle
.Underline;
System\Windows\Forms\Rendering\FontCache.Data.cs (8)
94
lfWeight = (int)((font.Style &
FontStyle
.Bold) ==
FontStyle
.Bold ? FW.BOLD : FW.NORMAL),
95
lfItalic = (font.Style &
FontStyle
.Italic) ==
FontStyle
.Italic ? True : False,
96
lfUnderline = (font.Style &
FontStyle
.Underline) ==
FontStyle
.Underline ? True : False,
97
lfStrikeOut = (font.Style &
FontStyle
.Strikeout) ==
FontStyle
.Strikeout ? True : False,
System.Windows.Forms.Design (13)
System\ComponentModel\Design\DesignerActionPanel.HeaderLine.cs (1)
16
protected 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)
15
private static readonly
FontStyle
[] s_fontStyles =
17
FontStyle
.Regular,
18
FontStyle
.Italic,
19
FontStyle
.Bold,
20
FontStyle
.Bold |
FontStyle
.Italic
46
foreach (
var
fontStyle in s_fontStyles)
69
private static void DrawFontSample(PaintValueEventArgs e, FontFamily fontFamily,
FontStyle
fontStyle)
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (1)
334
label.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)
864
using Font boldFont = new(_selectedItemName.Font,
FontStyle
.Bold);
WindowsFormsIntegration (11)
System\Windows\Integration\WindowsFormsHostPropertyMap.cs (11)
158
SD.
FontStyle
style;
161
style = SD.
FontStyle
.Regular;
165
style = SD.
FontStyle
.Italic;
169
style |= SD.
FontStyle
.Bold;
187
SD.
FontStyle
style = CurrentFontStyle;
190
style |= SD.
FontStyle
.Bold;
332
private SD.
FontStyle
CurrentFontStyle
336
SD.
FontStyle
style;
340
style = SD.
FontStyle
.Regular;
344
style = SD.
FontStyle
.Italic;
349
style |= SD.
FontStyle
.Bold;