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)
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;
159
si.AddValue("Style",
Style
); // Do not rename (binary serialization)
247
&& font.
Style
==
Style
255
public override int GetHashCode() => HashCode.Combine(Name,
Style
, Size, Unit);
748
float emHeightInPixels = lineSpacingInPixels * FontFamily.GetEmHeight(
Style
) / FontFamily.GetLineSpacing(
Style
);
System\Drawing\FontConverter.cs (4)
75
if (font.
Style
!= FontStyle.Regular)
79
sb.AppendLiteral(font.
Style
.ToString());
102
else if (font.
Style
!= FontStyle.Regular)
117
args[2] = font.
Style
;
System\Drawing\SystemFonts.cs (1)
264
return 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)
533
using Font alwaysUnderlined = new Font(Font, Font.
Style
| FontStyle.Underline);
System\Windows\Forms\Controls\Labels\LinkUtilities.cs (3)
202
FontStyle style = f.
Style
;
217
FontStyle hoverStyle = f.
Style
;
229
FontStyle linkStyle = f.
Style
;
System\Windows\Forms\Dialogs\CommonDialogs\FontDialog.cs (2)
144
result = new Font(result.FontFamily, MinSize, result.
Style
, GraphicsUnit.Point);
149
result = new Font(result.FontFamily, MaxSize, result.
Style
, GraphicsUnit.Point);
System\Windows\Forms\Rendering\ControlPaint.cs (1)
2125
font.
Style
,
System\Windows\Forms\Rendering\FontCache.Data.cs (4)
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 (1)
System\ComponentModel\Design\MultilineStringEditor.MultilineStringEditorUI.cs (1)
305
replaceFont = new Font(fallBackFontName, base.Font.Size, base.Font.
Style
);
System.Windows.Forms.Primitives (1)
System\Windows\Forms\FontExtensions.cs (1)
25
templateFont.
Style
,
WindowsFormsIntegration (1)
System\Windows\Integration\WindowsFormsHostPropertyMap.cs (1)
140
adapter.Font = new SD.Font(familySource, adapter.Font.Size, adapter.Font.
Style
);