Name
FontStyle
Synopsis
This enumeration provides a set of style modifiers that can be used
on a Font
. Because it is marked with the
FlagsAttribute
, you can combine several values
using the bitwise operator (e.g., |
) to generate
compound styles such as (Bold | Italic)
.
public enum FontStyle { Regular = 0x00000000, Bold = 0x00000001, Italic = 0x00000002, Underline = 0x00000004, Strikeout = 0x00000008 }
Hierarchy
System.Object
→ System.ValueType → System.Enum(System.IComparabl,
System.IFormattable
,
System.IConvertible)
→ FontStyle
Returned By
Font.Style
Passed To
Font.Font()
, FontFamily.{GetCellAscent()
, GetCellDescent()
,
GetEmHeight()
, GetLineSpacing()
, IsStyleAvailable()}
Get .NET Windows Forms in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.